/api/astro/panchak/1 creditPanchak
The day divided into windows, each labelled with the panchaka it falls under. A `panchaka` of null means that window carries none - which is the favourable case, and the reason the underlying calculation is named for the absence rather than the presence. Windows are contiguous and cover the whole day.
https://yogataraapi.prahlad.app/api/astro/panchak/Authentication
Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonRequest fields
| Field | Type | Required | Notes |
|---|---|---|---|
| date_time | string (date-time) | required | The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers. |
| latitude | number (double) | required | Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first. min -89.9 · max 89.9 |
| longitude | number (double) | required | Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China. min -180 · max 180 |
| timezone_as_float | number (double) | required | UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset. min -12 · max 14 |
| dhuma_vyatipata_relation | string | optional | 360_minus_dhumadhuma_plus_53_20 |
| eccentric_anomaly | number (double) | optional | |
| eccentricity | number (double) | optional | |
| gulika_portion | string | optional | saturneighth |
| gulika_rises_at | string | optional | beginningmiddleend |
| kala_mrityu_rise_at | string | optional | beginningmiddleend |
| keys | array | optional | Which calculations to return, as a list of names. See the key table for this endpoint; an unrecognised name rejects the whole request. One call costs one credit however many keys you ask for, so request everything you need at once rather than making several calls. |
| mandi_portion | string | optional | saturneighth |
| mandi_rises_at | string | optional | beginningmiddleend |
| mean_anomaly | number (double) | optional | |
| mode | string | optional | |
| nakshatras | string | optional | |
| samvata_type | string | optional | |
| tolerance | number (double) | optional |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/panchak/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"2026-09-01T06:00:00+05:30","timezone_as_float":5.5,"latitude":26.9124,"longitude":75.7873}'Response
{
"data": {
"windows": [
{
"panchaka": null,
"start": "2026-08-31T00:39:30Z",
"end": "2026-08-31T01:53:56Z"
},
{
"panchaka": "Raja Panchaka",
"start": "2026-08-31T01:53:56Z",
"end": "2026-08-31T03:22:09Z"
},
{
"panchaka": "Raja Panchaka",
"start": "2026-08-31T03:22:09Z",
"end": "2026-08-31T04:08:26Z"
},
{
"panchaka": null,
"start": "2026-08-31T04:08:26Z",
"end": "2026-08-31T06:26:21Z"
},
{
"panchaka": "Chora Panchaka",
"start": "2026-08-31T06:26:21Z",
"end": "2026-08-31T08:44:04Z"
},
{
"panchaka": null,
"start": "2026-08-31T08:44:04Z",
"end": "2026-08-31T10:48:25Z"
},
{
"panchaka": "Roga Panchaka",
"start": "2026-08-31T10:48:25Z",
"end": "2026-08-31T12:32:03Z"
},
{
"panchaka": null,
"start": "2026-08-31T12:32:03Z",
"end": "2026-08-31T14:01:15Z"
},
{
"panchaka": "Mrityu Panchaka",
"start": "2026-08-31T14:01:15Z",
"end": "2026-08-31T15:28:01Z"
},
{
"panchaka": "Roga Panchaka",
"start": "2026-08-31T15:28:01Z",
"end": "2026-08-31T17:04:51Z"
},
{
"panchaka": null,
"start": "2026-08-31T17:04:51Z",
"end": "2026-08-31T19:01:17Z"
},
{
"panchaka": "Mrityu Panchaka",
"start": "2026-08-31T19:01:17Z",
"end": "2026-08-31T21:15:32Z"
},
{
"panchaka": "Agni Panchaka",
"start": "2026-08-31T21:15:32Z",
"end": "2026-08-31T21:53:59.999999Z"
},
{
"panchaka": null,
"start": "2026-08-31T21:53:59.999999Z",
"end": "2026-08-31T23:34:29Z"
},
{
"panchaka": "Raja Panchaka",
"start": "2026-08-31T23:34:29Z",
"end": "2026-09-01T00:39:56Z"
}
]
},
"status": 200,
"is_error": false,
"message": "successful"
}Captured from a real call using the exact request above. Results sit under data.
Errors
Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.