Vimshottari Dasha
POST https://starsapi.com/api/v3/vedic/dashas/vimshottari
Returns the complete Vimshottari Dasha (120-year Parashari planetary period system) with three levels of sub-periods: Mahadasha → Antardasha → Pratyantardasha. Includes the dasha balance at birth, the currently running dasha down to Pran level, and the full Mahadasha table with nested sub-periods.
The Vimshottari system is the most widely used dasha system in Vedic astrology. The starting planet is determined by the Moon’s nakshatra at birth, and the balance of the first dasha is proportional to the Moon’s traversal within that nakshatra.
levels parameter to control depth (1–5) — no need
to chain multiple requests or pass parent period IDs.
Authentication
| Method | Example |
|---|---|
| Header (recommended) | X-Api-Key: sa_live_xxxxxxxxxxxx |
| Bearer | Authorization: Bearer sa_live_xxxxxxxxxxxx |
| Query | ?api_key=sa_live_xxxxxxxxxxxx |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
year | integer | Yes | Birth year, 4-digit. |
month | integer | Yes | Birth month, 1–12. |
day | integer | Yes | Day of month. |
hour | integer | Yes | Hour, 24-hour format. |
minute | integer | Yes | Minute. |
second | integer | No | Default 0. |
latitude | number | Yes | Decimal degrees, −90…90. |
longitude | number | Yes | Decimal degrees, −180…180. |
timezone | string | Yes | IANA timezone identifier. |
ayanamsa | string | No | Default lahiri. Full list → |
node_type | string | No | mean (default) or true. |
levels | integer | No | Depth of sub-periods to return, 1–5. Default 3. Level 1 = Mahadasha only, 2 = +Antardasha, 3 = +Pratyantardasha, 4 = +Sookshma, 5 = +Pran. |
reference_date | string | No | YYYY-MM-DD. Compute “current dasha” as of this date instead of today. Useful for past/future analysis. |
Ayanamsa & KP usage
Vimshottari periods are derived from the Moon’s nakshatra position, which shifts
with the chosen ayanamsa. Lahiri and Krishnamurti (KP) differ by roughly 5–6
arc-minutes — enough to shift dasha start/end dates by several days, and at deeper
levels (Sookshma/Pran) even change the running lord. KP practitioners should pass
"ayanamsa": "krishnamurti" (alias kp); variants
kp_new and kp_senthil are also supported. The ayanamsa
actually used is echoed in the response meta for verification.
Unknown ayanamsa names return an error rather than silently falling back to Lahiri.
Response shape
moon_nakshatra
The natal Moon’s nakshatra that determines the starting dasha planet.
| Field | Type | Description |
|---|---|---|
name | string | Nakshatra name. |
number | integer | Nakshatra number, 1–27. |
lord | string | Nakshatra ruling planet (first Mahadasha lord). |
degree_in_nakshatra | number | Moon’s degree within the nakshatra (0–13.33). |
percentage_traversed | number | Percentage of nakshatra the Moon has crossed — determines dasha balance. |
dasha_at_birth
The dasha running at the exact moment of birth, with balance remaining.
| Field | Type | Description |
|---|---|---|
balance | string | Human-readable balance of the first Mahadasha. |
running | string | Compact dasha chain at birth (e.g. Sat-Ketu-Rahu-Ven-Rahu). |
details | object | Broken out: mahadasha, antardasha, pratyantardasha, sookshma_dasha, pran_dasha. |
current_dasha
The dasha running right now, computed at the time of the API call.
| Field | Type | Description |
|---|---|---|
mahadasha | object | Current Mahadasha: planet, start_date, end_date, remaining. |
antardasha | object | Current Antardasha (same fields). |
pratyantardasha | object | Current Pratyantardasha. |
sookshma_dasha | object | Current Sookshma dasha. |
pran_dasha | object | Current Pran dasha (finest level). |
summary | string | Compact chain (e.g. Ketu-Mercury-Venus-Saturn-Jupiter). |
mahadasha_table
Full lifecycle table — an array covering the entire 120-year Vimshottari cycle
from birth. Each Mahadasha contains nested antardashas, each of which
contains nested pratyantardashas (3 levels deep).
| Field | Type | Description |
|---|---|---|
planet | string | Dasha lord. |
years | integer | Full period duration in years. |
start_date | string | Period start (YYYY-MM-DD). |
end_date | string | Period end. |
is_balance | boolean | true if this is the first (balance) period. |
duration_days | number | Exact duration in days (sub-periods). |
antardashas | array | Nested sub-periods (same shape, with pratyantardashas inside). |
Use cases
- Dasha timeline — render a full lifetime dasha timeline from birth to 120 years.
- Current period display — show the user which Mahadasha/Antardasha/Pratyantardasha is running right now.
- Prediction engine — feed current dasha lords into your AI or rule-based prediction system.
- Dasha balance — show the starting dasha and remaining balance at birth for consultation apps.
Errors
| HTTP | Code | Cause |
|---|---|---|
| 400 | MISSING_FIELD | Required field absent. |
| 400 | INVALID_DATE | Bad calendar date. |
| 400 | INVALID_TIME | Hour/minute/second out of range. |
| 400 | INVALID_TIMEZONE | Non-IANA timezone. |
| 400 | INVALID_COORDINATE | Lat/lon out of range. |
| 400 | INVALID_PARAM | levels not 1–5, or reference_date not YYYY-MM-DD. |
| 405 | METHOD_NOT_ALLOWED | Non-POST request. |
| 500 | COMPUTE_ERROR | Unknown ayanamsa name. |
See also
- Yogini Dasha — alternative 36-year cycle dasha system
- Nakshatra — detailed Moon nakshatra data
- Vedic Astrology overview — full category index