POST · VEDIC

Brahma Muhurta

Endpoint POST https://starsapi.com/api/v3/vedic/panchang/brahma-muhurta

Returns the day's Brahma Muhurta — the auspicious pre-dawn window from 96 to 48 minutes before local sunrise (the penultimate muhurta of the night). Traditionally the best time for waking, meditation, japa, and study. Anchored to sunrise, so it is fully location- and date-dependent.

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
start_time / end_timestringWindow in local time (HH:MM:SS).
duration_minutesintegerWindow length.
period_numberinteger/nullWhich of the 8 day-portions (ashtamsa) this window occupies; null for muhurtas not built on ashtamsa.
current_statusobjectLive tracking when the requested date is today: is_active, phase (upcoming / active / past), seconds counters, and human-readable display strings.

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