POST · VEDIC

Hora

Endpoint POST https://starsapi.com/api/v3/vedic/panchang/hora

Returns all 24 planetary horas for the date — 12 day horas (each 1/12 of sunrise→sunset) and 12 night horas (each 1/12 of sunset→next sunrise). The first hora belongs to the weekday lord (Friday → Venus) and the sequence follows the classical hora chakra: Venus → Mercury → Moon → Saturn → Jupiter → Mars → Sun, repeating. Hora lengths stretch and shrink with the actual local day/night.

When the requested date is today, current identifies the running hora. (Sample below is truncated; the live response carries all 24 horas.)

Authentication

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

Request body

FieldTypeRequiredDescription
yearintegerYesCalendar year.
monthintegerYesMonth, 1–12.
dayintegerYesDay of month.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone (e.g. Asia/Kolkata).

Response shape

FieldTypeDescription
currentobjectThe hora running at request time (today only).
all_horas[]array24 entries: number (1–24 from sunrise), planet, start/end, is_day_hora. Night times past midnight roll into the next calendar day.

Errors

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

See also