Planets Advanced
POST https://starsapi.com/api/v3/vedic/natal/planets-advanced
Returns all 9 Vedic grahas with the full baseline fields from
/natal/planets
plus deep analytical fields: KP sub-lords, functional nature
(benefic/malefic/neutral for this specific ascendant), dignity booleans, Navamsa
sign, vargottama status, and the complete 4-fold avastha system
(Baladi, Deeptadi, Jagradi, Lajjitadi).
This is the most detailed planet endpoint — designed for professional
astrologers, KP practitioners, and advanced interpretation engines. For baseline
data only, use /natal/planets.
Authentication
Required. Three methods accepted:
| Method | Example |
|---|---|
| Header (recommended) | X-Api-Key: am_live_xxxxxxxxxxxx |
| Bearer | Authorization: Bearer am_live_xxxxxxxxxxxx |
| Query | ?api_key=am_live_xxxxxxxxxxxx |
See authentication for security considerations.
Request body
Identical to /natal/planets. All core fields are required.
| 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, 0–23. |
minute | integer | Yes | Minute, 0–59. |
second | integer | No | Default 0. |
latitude | number | Yes | Signed decimal degrees, −90…90. |
longitude | number | Yes | Signed decimal degrees, −180…180. |
timezone | string | Yes | IANA timezone identifier. |
name | string | No | Use /vedic/birth-details to retrieve. |
place | string | No | Use /vedic/birth-details to retrieve. |
ayanamsa | string | No | Default lahiri. Full list → |
node_type | string | No | mean (default) or true. |
Response shape
All baseline fields from /natal/planets
are included. The tables below document only the additional fields.
The sample shows 2 representative planets — all 9 follow the same shape.
Ascendant — additional fields
| Field | Type | Description |
|---|---|---|
sub_lord | string | KP sub-lord of the ascendant degree. |
sub_sub_lord | string | KP sub-sub-lord. |
functional_nature | string | Always Self for the ascendant. |
functional_type | string | Always Ascendant. |
functional_houses | string | Always 1st house. |
navamsa_sign | string | Navamsa (D9) sign of the ascendant. |
navamsa_sign_num | integer | Navamsa sign number (1–12). |
is_vargottama | boolean | true if Rashi and Navamsa sign are the same. |
Planet — additional fields
| Field | Type | Description |
|---|---|---|
| KP | ||
sub_lord | string | KP sub-lord based on the planet’s longitude. |
sub_sub_lord | string | KP sub-sub-lord. |
| Functional nature (ascendant-specific) | ||
functional_nature | string | Benefic, Malefic, or Neutral for this ascendant. |
functional_type | string | Reasoning (e.g. Trikona Lord, Dusthana Lord). |
functional_houses | string | Which houses drive the classification (e.g. 2nd & 9th lord). |
| Dignity booleans | ||
is_exalted | boolean | Planet is in its sign of exaltation. |
is_debilitated | boolean | Planet is in its sign of debilitation. |
is_own_sign | boolean | Planet is in a sign it rules. |
is_moolatrikona | boolean | Planet is in its moolatrikona range. |
| Divisional | ||
navamsa_sign | string | Navamsa (D9) sign. |
navamsa_sign_num | integer | Navamsa sign number (1–12). |
is_vargottama | boolean | true if Rashi sign equals Navamsa sign. |
| Avasthas (4-fold system) | ||
avastha.bala | object | Baladi avastha: avastha (name), state (meaning), strength (0–100). |
avastha.deeptadi | object | Deeptadi avastha: avastha, state (e.g. Exalted, Own Sign, Enemy Sign), effect. |
avastha.jagradi | object | Jagradi avastha: avastha (Jagrad/Swapna/Sushupt), state, strength. |
avastha.lajjitadi | object | Lajjitadi avastha: avastha, state, effect. |
Use cases
- KP analysis — use
sub_lordandsub_sub_lordfor Krishnamurti Paddhati predictions. - Yogakaraka detection —
functional_nature+functional_housesidentify yogakarakas and maraka lords programmatically. - Navamsa overlay — display Rashi and Navamsa sign side by side; flag vargottama planets.
- Avastha-based predictions — the 4-fold avastha system gives a multi-dimensional strength profile for each planet.
- Professional reports — all the data a Jyotish practitioner needs in a single call.
Errors
| HTTP | Code | Cause |
|---|---|---|
| 400 | MISSING_FIELD | A required birth field is absent. |
| 400 | INVALID_DATE | Invalid calendar date. |
| 400 | INVALID_TIME | Hour/minute/second out of range. |
| 400 | INVALID_TIMEZONE | Numeric or non-IANA timezone. |
| 400 | INVALID_COORDINATE | latitude / longitude out of range. |
| 401 | AUTH_MISSING_KEY | No API key in request. |
| 401 | AUTH_INVALID_KEY | Key format invalid or not found. |
| 401 | AUTH_REVOKED_KEY | Key has been revoked. |
| 403 | AUTH_ORIGIN_DENIED | Request from non-whitelisted origin. |
| 405 | METHOD_NOT_ALLOWED | Non-POST request. |
| 429 | RATE_LIMIT_EXCEEDED | Plan quota exceeded. |
| 500 | CALCULATION_ERROR | Ephemeris calculation failed. |
Error response format
{
"success": false,
"error": {
"code": "INVALID_TIMEZONE",
"message": "Unrecognised timezone: 'Asia/Calcutta_'. Use a valid IANA identifier such as 'Asia/Kolkata'."
}
}
See also
- Planets — baseline 9-graha positions
- Planets Extended — 9 + outer planets
- Vedic Astrology overview — full category index