POST · VEDIC

Daily Panchang (Basic)

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

Returns a lightweight daily panchang for any date and location: the five limbs — tithi (with paksha), nakshatra (with pada), yoga, karana, and vaar (weekday with its lord) — plus sunrise, sunset, moonrise, and moonset, all computed at local sunrise as per the traditional method.

For end times, deities, the Hindu calendar (maas, samvatsara, ritu, ayana), muhurta windows, gandanta, panchak, tarabala, and disha shool, use the advanced endpoint.

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).
ayanamsastringNoDefault lahiri.

Response shape

FieldTypeDescription
five_limbsobjectThe five panchang limbs: tithi (name, paksha), nakshatra (name, pada), yoga, karana, vaar (English/Hindi name and planetary lord).
sun_moonobjectLocal sunrise, sunset, moonrise, moonset (HH:MM:SS).
ayanamsaobjectAyanamsa name and value used for sidereal positions.

Errors

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

See also