POST · VEDIC

Rahu Kaal

Endpoint POST https://starsapi.com/api/v3/vedic/panchang/rahu-kaal

Returns the day's Rahu Kaal — the inauspicious window ruled by Rahu during which no new or auspicious work should be started. The day (sunrise to sunset) is divided into 8 equal portions (ashtamsa); Rahu's portion follows the classical weekday sequence (Mon 2, Sat 3, Fri 4, Wed 5, Thu 6, Tue 7, Sun 8), so the window shifts with sunrise/sunset and is fully location-dependent.

When the requested date is today, current_status tracks the window live — ideal for app countdowns and notifications.

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