POST · VEDIC

Sun Chart

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

Returns chart image URLs for the Surya Kundali (Sun chart). The Sun chart places the Sun’s sign as the 1st house instead of the ascendant — used in Vedic astrology to analyse the father, soul, authority, career in government, and social status.

Authentication

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

FieldTypeRequiredDescription
yearintegerYesBirth year, 4-digit.
monthintegerYesBirth month, 112.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour format.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees, −90…90.
longitudenumberYesDecimal degrees, −180…180.
timezonestringYesIANA timezone identifier.
ayanamsastringNoDefault lahiri. Full list →
node_typestringNomean (default) or true.

Response shape

FieldTypeDescription
codestringAlways SUN.
namestringSurya Kundali.
significancestringWhat this chart governs.
reference_point.planetstringAlways Sun.
reference_point.signstringSun’s sign (becomes the 1st house).
reference_point.sign_lordstringRuling planet of Sun’s sign.
images.northstring (URL)North Indian style chart image.
images.southstring (URL)South Indian style chart image.
Image URLs are time-limited. Each contains an expires timestamp and token. Fetch directly without API key. Returns 403 after expiry.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
405METHOD_NOT_ALLOWEDNon-POST request.

See also

  • Moon Chart — Chandra Kundali (Moon as 1st house)
  • Sun Sign — detailed Sun sign data
  • Varga — any D1–D60 chart image