POST · VEDIC

Moon Times

Endpoint POST https://starsapi.com/api/v3/vedic/panchang/moon-times

Returns local moonrise and moonset for any date and location, plus the Moon's context for the day: phase, strength percentage, paksha, tithi, and the Moon's nakshatra. Moonrise past midnight is reported on the calendar date it occurs.

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
moonrise / moonsetstringLocal time, HH:MM:SS.
phasestringLunar phase name (e.g. Waning Crescent).
strength_percentageintegerChandrabala-style Moon strength for the day.
paksha / tithi / nakshatrastringThe Moon's panchang context at sunrise.

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