POST · VEDIC

Varga

Endpoint POST https://starsapi.com/api/v3/vedic/charts/varga

Returns signed chart image URLs (North Indian and South Indian styles) for any of the 16 Parashari divisional charts — D1 through D60. Each call returns one chart for 1 credit. The images can be embedded directly in an <img> tag or downloaded — no additional authentication is needed to fetch them.

For planet position data (for tables and analysis), use /charts/varga-planets instead. Both endpoints accept the same chart parameter.

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, minimal ascendant info, and two signed image URLs.

FieldTypeDescription
data.chart
codestringChart code (e.g. D9).
namestringSanskrit chart name (e.g. Navamsa).
significancestringWhat this chart governs.
data.chart.ascendant
signstringAscendant sign in this chart.
sign_lordstringRuling planet.
data.chart.images
northstring (URL)Signed URL for the North Indian style chart image.
southstring (URL)Signed URL for the South Indian style chart image.
Image URLs are time-limited. Each URL contains an expires timestamp and a token. The image can be fetched directly (no API key needed) but will return 403 after expiry. Generate fresh URLs by calling this endpoint again.

Use cases

  • Kundli apps — render D1, D9, D10 charts side by side with one call per chart.
  • PDF reports — download the chart images and embed them in generated kundli reports.
  • Chat/messaging — send chart image URLs directly in WhatsApp, Telegram, or in-app chat.
  • North vs South preference — both styles are always returned — let users choose their regional format.

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