POST · VEDIC

KP Chart

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

Returns the KP chart with signed image URLs (North and South Indian styles) using KP Old ayanamsa and Placidus context. URLs are pre-signed and expire; fetch fresh URLs rather than storing them.

All KP endpoints default to the KP Old (Krishnamurti) ayanamsa and mean nodes, matching classical KP ephemeris practice. Both are overridable per request.

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.
yearintegerYesYear.
monthintegerYesMonth, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
ayanamsastringNoDefault kp_old (Krishnamurti). Any supported ayanamsa accepted.
node_typestringNomean (default, per classical KP ephemeris practice) or true.

Response shape

FieldTypeDescription
chartobjectChart data with images.north / images.south signed PNG URLs.

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, node_type, or other option.
405METHOD_NOT_ALLOWEDNon-POST request.

See also