/api/astro/dasha/nakshatra/1 creditNakshatra dasha (any system)
Any of the eleven nakshatra dashas, by name. The systems people ask for by name have their own endpoints; this covers the rest — Chaturaseeti Sama, Dwadashottari, Dwisaptati, Panchottari, Sataabdika, Shattrimsa Sama and Budhi Gati — without a route each. Accepts either the display name or the engine id. Every one of these except Vimshottari and Yogini is conditional; see /api/astro/dasha_applicability/.
https://yogataraapi.prahlad.app/api/astro/dasha/nakshatra/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 |
|---|---|---|---|
| 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 -90 · max 90 |
| 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 |
| system | string | required | Dasha system. See /api/astro/dasha/systems/ for the list; both the display name and the engine id are accepted. |
| dasha_direction | string | optional | forwardbackward |
| dasha_start | string | optional | Which cycle the timeline opens on. currentnextprevious |
| date_time | string (date-time) | optional | 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. |
| datetime | string (date-time) | optional | 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. Same meaning as date_time, which other endpoints call the same thing by a different name. |
| days_in_year | number (double) | optional | Year length the periods are measured in. 360 for the classical savana year, 365.25 for the Julian year. min 360 · max 365.256364 |
| levels | integer | optional | How deep to nest: 1 mahadasha only, 2 adds antardasha, 3 adds pratyantardasha. Capped at 4 because the response grows roughly tenfold per level. min 1 · max 4 |
| node | string | optional | Lunar node model. Required by the rashi parent, which does not default it; defaulted here. truemean |
| timezone_as_float | number (double) | optional | 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 |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/dasha/nakshatra/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"1990-08-15T10:30:00+05:30","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5,"levels":2,"system":"Dwisaptati"}'Response
{
"_truncated": true,
"_note": "Response shortened for the catalogue.",
"preview": "{\"data\": {\"system\": \"Dwisaptati\", \"engine_id\": \"DwisaptatiDasha\", \"family\": \"nakshatra\", \"lord_type\": \"planet\", \"levels\": 2, \"level_names\": [\"mahadasha\", \"antardasha\"], \"cycle_years\": 72, \"conditional\": true, \"periods\": [{\"lord\": \"jupiter\", \"start\": \"1984-08-04 13:36:41.045503+00:00\", \"end\": \"1993-08-04 19:36:41.045503+00:00\", \"children\": [{\"lord\": \"jupiter\", \"start\": \"1984-08-04 13:36:41.045503+00:00\", \"end\": \"1985-09-19 10:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"venus\", \"start\": \"1985-09-19 10:36:41.045503+00:00\", \"end\": \"1986-11-04 07:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"saturn\", \"start\": \"1986-11-04 07:36:41.045503+00:00\", \"end\": \"1987-12-20 04:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"rahu\", \"start\": \"1987-12-20 04:36:41.045503+00:00\", \"end\": \"1989-02-03 01:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"sun\", \"start\": \"1989-02-03 01:36:41.045503+00:00\", \"end\": \"1990-03-20 22:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"moon\", \"start\": \"1990-03-20 22:36:41.045503+00:00\", \"end\": \"1991-05-05 19:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mars\", \"start\": \"1991-05-05 19:36:41.045503+00:00\", \"end\": \"1992-06-19 16:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mercury\", \"start\": \"1992-06-19 16:36:41.045503+00:00\", \"end\": \"1993-08-04 13:36:41.045503+00:00\", \"children\": []}]}, {\"lord\": \"venus\", \"start\": \"1993-08-04 19:36:41.045503+00:00\", \"end\": \"2002-08-05 01:36:41.045503+00:00\", \"children\": [{\"lord\": \"venus\", \"start\": \"1993-08-04 19:36:41.045503+00:00\", \"end\": \"1994-09-19 16:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"saturn\", \"start\": \"1994-09-19 16:36:41.045503+00:00\", \"end\": \"1995-11-04 13:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"rahu\", \"start\": \"1995-11-04 13:36:41.045503+00:00\", \"end\": \"1996-12-19 10:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"sun\", \"start\": \"1996-12-19 10:36:41.045503+00:00\", \"end\": \"1998-02-03 07:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"moon\", \"start\": \"1998-02-03 07:36:41.045503+00:00\", \"end\": \"1999-03-21 04:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mars\", \"start\": \"1999-03-21 04:36:41.045503+00:00\", \"end\": \"2000-05-05 01:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mercury\", \"start\": \"2000-05-05 01:36:41.045503+00:00\", \"end\": \"2001-06-19 22:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"jupiter\", \"start\": \"2001-06-19 22:36:41.045503+00:00\", \"end\": \"2002-08-04 19:36:41.045503+00:00\", \"children\": []}]}, {\"lord\": \"saturn\", \"start\": \"2002-08-05 01:36:41.045503+00:00\", \"end\": \"2011-08-05 07:36:41.045503+00:00\", \"children\": [{\"lord\": \"saturn\", \"start\": \"2002-08-05 01:36:41.045503+00:00\", \"end\": \"2003-09-19 22:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"rahu\", \"start\": \"2003-09-19 22:36:41.045503+00:00\", \"end\": \"2004-11-03 19:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"sun\", \"start\": \"2004-11-03 19:36:41.045503+00:00\", \"end\": \"2005-12-19 16:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"moon\", \"start\": \"2005-12-19 16:36:41.045503+00:00\", \"end\": \"2007-02-03 13:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mars\", \"start\": \"2007-02-03 13:36:41.045503+00:00\", \"end\": \"2008-03-20 10:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"mercury\", \"start\": \"2008-03-20 10:36:41.045503+00:00\", \"end\": \"2009-05-05 07:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"jupiter\", \"start\": \"2009-05-05 07:36:41.045503+00:00\", \"end\": \"2010-06-20 04:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"venus\", \"start\": \"2010-06-20 04:36:41.045503+00:00\", \"end\": \"2011-08-05 01:36:41.045503+00:00\", \"children\": []}]}, {\"lord\": \"rahu\", \"start\": \"2011-08-05 07:36:41.045503+00:00\", \"end\": \"2020-08-04 13:36:41.045503+00:00\", \"children\": [{\"lord\": \"rahu\", \"start\": \"2011-08-05 07:36:41.045503+00:00\", \"end\": \"2012-09-19 04:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"sun\", \"start\": \"2012-09-19 04:36:41.045503+00:00\", \"end\": \"2013-11-04 01:36:41.045503+00:00\", \"children\": []}, {\"lord\": \"moon\", \"start\": \"2013-11-04 01:36:41.045503+00:00\", \"end\": \"2014-12-19 22:36:41.045503+00:"
}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.