Varga Planets
POST https://starsapi.com/api/v3/vedic/charts/varga-planets
Returns planet positions for any of the 16 Parashari divisional (varga) charts — D1 through D60. This is the data endpoint for building planet tables, dignity grids, and analytical views of divisional charts. Each call returns one chart for 1 credit.
For chart images (North/South Indian rendered charts), use
/charts/varga
instead. Both endpoints accept the same chart parameter and birth data.
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
Send a JSON object with Content-Type: application/json. All core
fields are required. The chart parameter selects the divisional chart.
| Field | Type | Required | Description |
|---|---|---|---|
chart | string | No | Divisional chart code or Sanskrit name. Default D1. See supported charts below. |
year | integer | Yes | Birth year, 4-digit (e.g. 1990). |
month | integer | Yes | Birth month, 1–12. |
day | integer | Yes | Day of month, 1–31. |
hour | integer | Yes | Hour in 24-hour local clock time, 0–23. |
minute | integer | Yes | Minute, 0–59. |
second | integer | No | Second, 0–59. Default 0. |
latitude | number | Yes | Signed decimal degrees, −90…90. Positive = North. |
longitude | number | Yes | Signed decimal degrees, −180…180. Positive = East. |
timezone | string | Yes | IANA timezone identifier (e.g. Asia/Kolkata). |
ayanamsa | string | No | Default lahiri. Full list → |
node_type | string | No | mean (default) or true. |
Supported charts
Pass any D-code or Sanskrit name (case-insensitive). Common spelling variants are accepted.
| Code | Name | Significance |
|---|---|---|
D1 | Rashi | Birth chart — overall life, physical body |
D2 | Hora | Wealth and financial prosperity |
D3 | Drekkana | Siblings, courage, and co-borns |
D4 | Chaturthamsa | Fortune, property, and fixed assets |
D7 | Saptamsa | Children and progeny |
D9 | Navamsa | Marriage, spouse, and dharma |
D10 | Dasamsa | Career and profession |
D12 | Dwadasamsa | Parents and ancestry |
D16 | Shodasamsa | Vehicles, comforts, and happiness |
D20 | Vimsamsa | Spiritual progress and worship |
D24 | Siddhamsa | Education, learning, and knowledge |
D27 | Saptavimshamsa | Strength and weakness |
D30 | Trimsamsa | Misfortunes and evils |
D40 | Khavedamsa | Auspicious and inauspicious effects |
D45 | Akshavedamsa | General indications |
D60 | Shashtiamsa | Past life karma and all matters |
Response shape
A single data.chart object with chart metadata, ascendant, and planet
positions. Returns 9 Vedic grahas only (no outer planets). Fields vary by chart type.
D1 fields (6 per planet)
The birth chart (D1) includes extra positional detail since planets have real degrees:
| Field | Type | Description |
|---|---|---|
| data.chart | ||
code | string | Chart code (e.g. D1). |
name | string | Sanskrit chart name. |
significance | string | What this chart governs. |
| data.chart.ascendant (D1) | ||
sign | string | Ascendant sign. |
sign_lord | string | Ruling planet. |
degree_dms | string | Ascendant degree in D°M′S″ format. |
| data.chart.planets.{Planet} (D1) | ||
sign | string | Sign the planet occupies. |
sign_lord | string | Ruling planet of that sign. |
degree_dms | string | Degree within the sign. |
house | integer | House number (1–12). |
is_retrograde | boolean | Retrograde status. |
is_combust | boolean | Combustion status. |
D2–D60 fields (3 per planet)
Divisional charts are sign-placement only — degrees are not meaningful in higher vargas:
| Field | Type | Description |
|---|---|---|
| data.chart.ascendant (D2–D60) | ||
sign | string | Ascendant sign in this varga. |
sign_lord | string | Ruling planet. |
| data.chart.planets.{Planet} (D2–D60) | ||
sign | string | Divisional sign placement. |
sign_lord | string | Ruling planet of that sign. |
house | integer | House number (1–12). |
Use cases
- D9 planet table — render a Navamsa planet grid for marriage analysis without calling the image endpoint.
- Vargottama detection — compare D1 and D9 sign placements to flag vargottama planets.
- Career analysis — pull D10 (Dasamsa) planet positions to analyse 10th-house strength and career indicators.
- Multi-varga comparison — call multiple times with different chart codes to build a side-by-side varga table.
- Dignity tracking — check if a debilitated D1 planet lands in a strong sign in D9 (neecha bhanga).
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. |
| 400 | INVALID_CHART | Unrecognised chart code or name. |
| 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_CHART",
"message": "Unknown chart. Accepted: D1-D60 or Sanskrit names (rasi, hora, navamsa, dashamsa, etc.)"
}
}
See also
- Varga — chart images (North/South Indian) for any varga
- Planets — full D1 planet data with degree, nakshatra, dignity, speed
- Vedic Astrology overview — full category index