POST · VEDIC

Ashtakvarga Chart

Endpoint POST https://starsapi.com/api/v3/vedic/ashtakvarga/chart

Returns signed image URLs for all 8 Ashtakvarga charts — the SAV plus each planet’s BAV — in both North and South Indian styles (16 URLs), along with each chart’s point distribution. Images are rendered by the companion /chart-image endpoint; URLs are pre-signed and expire, so fetch fresh URLs rather than storing them.

Authentication

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

Request body

FieldTypeRequiredDescription
namestringNoEchoed in the response.
yearintegerYesBirth year.
monthintegerYesBirth month, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
ayanamsastringNoDefault lahiri.
node_typestringNomean (default) or true.

Response shape

FieldTypeDescription
cache_keystringRender-cache identifier for this chart set.
charts.savobjectSAV chart: code, name, total_points, points_by_sign, images.north / images.south (signed PNG URLs).
charts.bav_suncharts.bav_saturnobjectOne per planet: planet, total_points, points_by_sign, images.

Image rendering

Each images URL points to GET /api/v3/vedic/ashtakvarga/chart-image with a signed token and expiry. The endpoint returns a PNG directly (Content-Type: image/png) and requires no API key — the signature authorises it. Render styles follow the standard North/South Indian chart conventions with the bindu count placed in each sign.

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.
400INVALID_PARAMBad ayanamsa or node_type.
405METHOD_NOT_ALLOWEDNon-POST request.

See also