POST · VEDIC

Advanced Panchang

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

The full daily panchang, computed at local sunrise: all five limbs with exact start and end times and the next entity in sequence; the Hindu calendar (amant + purnimant maas with adhik-maas detection, paksha, ritu, ayana, samvatsara with Vikram/Shaka/Kali years); sun–moon timings with day/night durations; Rahu Kaal, Yamaganda, and Gulika windows; Abhijit and Brahma muhurta; gandanta and panchak status; and the additional block — namakshar, tarabala, chandrabala, and disha shool.

Hora and choghadiya are intentionally separate endpoints: hora, choghadiya.

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.
birth_nakshatraintegerNoBirth nakshatra 1–27 (1 = Ashwini … 27 = Revati). Enables personal tarabala; omitted → tarabala returns a note.

Response shape

FieldTypeDescription
five_limbsobjectTithi, nakshatra, yoga, karana, vaar — each with number, Hindi name, start_time/end_time, and the next entity. Karana also carries its tithi-half context.
calendarobjectmaas in both systems (Amavasyant + Purnimant) with adhik-maas flags and month start/end dates, paksha, ritu, ayana, samvatsara (name, Vikram/Shaka samvat, Kali Yuga year).
inauspicious_periodsobjectRahu Kaal, Yamaganda, Gulika — start/end, ashtamsa period number, is_active at request time.
auspicious_periodsobjectAbhijit muhurta (solar-noon ±24 min) and Brahma muhurta (96–48 min before sunrise).
special_periodsobjectgandanta and panchak activity with window details when active.
additional.tarabalaobjectTarabala for the person's birth_nakshatra against the day's nakshatra — inclusive count, 9-tara cycle (Janma … Parama Mitra). Without birth_nakshatra in the request, returns a note instead.
additional.chandrabalaobjectMoon strength percentage and phase for the day.
additional.disha_shoolobjectWeekday-based forbidden travel direction (e.g. Friday → West).

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