POST · VEDIC

KP Transit Chart

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

Returns a rendered KP transit chart for any moment — ready-to-embed PNG images in both North Indian and South Indian styles, drawn with Placidus (chalit) house placements per KP practice, plus the ascendant summary for the moment.

Date and time are optional — omit them entirely and the current moment at the given location is used.

Image URLs are signed and time-limited (expires + token query parameters). Fetch or embed them promptly rather than storing the URLs long-term; request the endpoint again for a fresh pair.

Authentication

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

Request body

FieldTypeRequiredDescription
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
yearintegerNoDefaults to the current moment when date/time fields are omitted.
monthintegerNoMonth, 1–12.
dayintegerNoDay of month.
hourintegerNoHour, 24-hour.
minuteintegerNoMinute.
secondintegerNoDefaults to 0 when any date/time field is supplied; only when all date/time fields are omitted does it follow the current clock.
placestringNoEchoed in moment.place.
ayanamsastringNoDefault kp_old (Krishnamurti). Any supported ayanamsa accepted.
node_typestringNomean (default) or true.

Response shape

FieldTypeDescription
momentobjectThe moment used — date, time, timezone, place.
chart.code / chart.namestringChart identifier (KP_TRANSIT) and display name.
chart.significancestringOne-line description of the chart.
chart.house_systemstringPlacidus (KP standard).
chart.ascendantobjectsign, sign_lord, degree_dms for the moment.
chart.images.northstringSigned PNG URL, North Indian style.
chart.images.southstringSigned PNG URL, South Indian style.

Errors

HTTPCodeCause
400MISSING_FIELDtimezone, latitude or longitude 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