Abhijit Muhurta API with Netlify Functions
Integrate Abhijit Muhurta API in Netlify Functions. Complete code examples and SDK documentation.
Operation
POST /v2/astrology/abhijit-muhurta
Find the Abhijit Muhurta for an explicit moment and place, supplied as a JSON body.
The POST twin of the GET above; both are served and billed identically. Unlike the GET — which anchors a missing clock to "now" over Delhi — the POST validates the body as a full birth/event moment and does NOT default it, so datetime (or date) plus latitude and longitude are required. datetime must be one of: "1990-05-15T10:30:00+05:30" (ISO-8601 with offset), "1990-05-15T10:30:00", "1990-05-15T10:30" or "1990-05-15". Do not put a full timestamp in date — use datetime for that, or send date as YYYY-MM-DD with time as HH:MM.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
datetime | body | string | The moment to compute for, ISO-8601. Required unless date is sent. Accepted: "1990-05-15T10:30:00+05:30", "1990-05-15T10:30:00", "1990-05-15T10:30", "1990-05-15". |
date | body | string | Calendar day, YYYY-MM-DD. Used only when datetime is absent; combined with time (defaulting to 12:00). Must NOT carry its own clock or offset. |
time | body | string | Clock time, HH:MM. Used only with date. |
latitude | body | number | Required. Location latitude. Alias: lat. No default on POST. |
longitude | body | number | Required. Location longitude. Aliases: lon, lng, long. No default on POST. |
timezone | body | string | UTC offset (e.g. +05:30) or IANA zone (e.g. Asia/Kolkata). Alias: tz. Applied when datetime carries no offset. |
Request example for Netlify Functions
Authenticate with Authorization: Bearer YOUR_API_KEY. Keep the key in the VEDIKA_API_KEY environment variable on your server and never in source control.
// netlify/functions/vedika-abhijit-muhurta.mjs
export default async () => {
const upstream = await fetch('https://api.vedika.io/v2/astrology/abhijit-muhurta', {
method: 'POST',
headers: {
Authorization: `Bearer ${Netlify.env.get("VEDIKA_API_KEY")}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"datetime": "2026-09-06T06:00:00+05:30",
"latitude": 19.076,
"longitude": 72.8777,
"timezone": "+05:30"
}),
});
return new Response(await upstream.text(), {
status: upstream.status,
headers: { 'Content-Type': 'application/json' },
});
};
Try it in the keyless sandbox
The sandbox mirrors the production route and needs no API key:
curl -X POST https://api.vedika.io/sandbox/astrology/abhijit-muhurta \
-H "Content-Type: application/json" \
-d '{"datetime":"2026-09-06T06:00:00+05:30","latitude":19.076,"longitude":72.8777,"timezone":"+05:30"}'
Sandbox response from POST /sandbox/astrology/abhijit-muhurta, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.
{
"data": {
"abhijitMuhurta": {
"period": {
"durationMinutes": 41.45888888888889,
"end": "1995-01-01T07:15:15.266Z",
"start": "1995-01-01T06:33:47.733Z"
}
},
"brahmaMuhurta": {
"period": {
"durationMinutes": 48,
"end": "1995-01-01T00:55:35Z",
"start": "1995-01-01T00:07:35Z"
}
},
"date": "1995-01-01",
"durmuhurta": {
"first": {
"durationMinutes": 41.45888888888889,
"end": "1995-01-01T06:33:47.733Z",
"start": "1995-01-01T05:52:20.200Z"
},
"second": {
"durationMinutes": 41.45888888888889,
"end": "1995-01-01T10:01:05.399Z",
"start": "1995-01-01T09:19:37.866Z"
}
},
"gulikaKaal": {
"period": {
"durationMinutes": 77.73541666666667,
"end": "1995-01-01T10:47:43.875Z",
"start": "1995-01-01T09:29:59.750Z"
},
"weekday": "Sunday",
"weekdayId": 1
},
"latitude": 28.6139,
"longitude": 77.209,
"muhurta": "Abhijit Muhurta",
"periods": [
{
"durationMinutes": 41.45888888888889,
"end": "1995-01-01T07:15:15.266Z",
"start": "1995-01-01T06:33:47.733Z"
}
],
"rahuKaal": {
"period": {
"durationMinutes": 77.73541666666667,
"end": "1995-01-01T12:05:28Z",
"start": "1995-01-01T10:47:43.875Z"
},
"weekday": "Sunday",
"weekdayId": 1
},
"sunrise": "1995-01-01T01:43:35Z",
"sunset": "1995-01-01T12:05:28Z",
"yamaghanta": {
"period": {
"durationMinutes": 77.73541666666667,
"end": "1995-01-01T08:12:15.625Z",
"start": "1995-01-01T06:54:31.500Z"
},
"weekday": "Sunday",
"weekdayId": 1
}
},
"meta": {
"contentMode": "fixture",
"engine": "vedika-intelligence",
"fixtureId": "demo-birth-1995-new-delhi",
"inputUsage": "ignored",
"mode": "sandbox",
"sample": true,
"version": "2.1.0"
},
"success": true
}
Related
Last updated: 22 November 2026