POST · VEDIC

Varga Planets

Endpoint 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:

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: 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.

FieldTypeRequiredDescription
chartstringNoDivisional chart code or Sanskrit name. Default D1. See supported charts below.
yearintegerYesBirth year, 4-digit (e.g. 1990).
monthintegerYesBirth month, 112.
dayintegerYesDay of month, 131.
hourintegerYesHour in 24-hour local clock time, 023.
minuteintegerYesMinute, 059.
secondintegerNoSecond, 059. Default 0.
latitudenumberYesSigned decimal degrees, −90…90. Positive = North.
longitudenumberYesSigned decimal degrees, −180…180. Positive = East.
timezonestringYesIANA timezone identifier (e.g. Asia/Kolkata).
ayanamsastringNoDefault lahiri. Full list →
node_typestringNomean (default) or true.

Supported charts

Pass any D-code or Sanskrit name (case-insensitive). Common spelling variants are accepted.

CodeNameSignificance
D1RashiBirth chart — overall life, physical body
D2HoraWealth and financial prosperity
D3DrekkanaSiblings, courage, and co-borns
D4ChaturthamsaFortune, property, and fixed assets
D7SaptamsaChildren and progeny
D9NavamsaMarriage, spouse, and dharma
D10DasamsaCareer and profession
D12DwadasamsaParents and ancestry
D16ShodasamsaVehicles, comforts, and happiness
D20VimsamsaSpiritual progress and worship
D24SiddhamsaEducation, learning, and knowledge
D27SaptavimshamsaStrength and weakness
D30TrimsamsaMisfortunes and evils
D40KhavedamsaAuspicious and inauspicious effects
D45AkshavedamsaGeneral indications
D60ShashtiamsaPast 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:

FieldTypeDescription
data.chart
codestringChart code (e.g. D1).
namestringSanskrit chart name.
significancestringWhat this chart governs.
data.chart.ascendant (D1)
signstringAscendant sign.
sign_lordstringRuling planet.
degree_dmsstringAscendant degree in D°M′S″ format.
data.chart.planets.{Planet} (D1)
signstringSign the planet occupies.
sign_lordstringRuling planet of that sign.
degree_dmsstringDegree within the sign.
houseintegerHouse number (1–12).
is_retrogradebooleanRetrograde status.
is_combustbooleanCombustion status.

D2–D60 fields (3 per planet)

Divisional charts are sign-placement only — degrees are not meaningful in higher vargas:

FieldTypeDescription
data.chart.ascendant (D2–D60)
signstringAscendant sign in this varga.
sign_lordstringRuling planet.
data.chart.planets.{Planet} (D2–D60)
signstringDivisional sign placement.
sign_lordstringRuling planet of that sign.
houseintegerHouse 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

HTTPCodeCause
400MISSING_FIELDA required birth field is absent.
400INVALID_DATEInvalid calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENumeric or non-IANA timezone.
400INVALID_COORDINATElatitude / longitude out of range.
400INVALID_CHARTUnrecognised chart code or name.
401AUTH_MISSING_KEYNo API key in request.
401AUTH_INVALID_KEYKey format invalid or not found.
401AUTH_REVOKED_KEYKey has been revoked.
403AUTH_ORIGIN_DENIEDRequest from non-whitelisted origin.
405METHOD_NOT_ALLOWEDNon-POST request.
429RATE_LIMIT_EXCEEDEDPlan quota exceeded.
500CALCULATION_ERROREphemeris 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