POST/v1/astro/panchanga/rahu-kaal
Rahu Kaal, Gulika Kaal, Yamaganda Kaal
Calculate the three inauspicious time periods for a given date and location. Rahu Kaal, Gulika Kaal (Mandi), and Yamaganda Kaal are avoided for starting auspicious activities. All three are based on dividing the day into 8 equal parts from sunrise to sunset.
GET works tooGET /v1/astro/panchanga/rahu-kaal: Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age.
Request parameters
daterequired
string
Date in YYYY-MM-DD format
locationoptional
string | null
City name. Example: 'Mumbai'
latitudeoptional
number | null
Latitude in decimal degrees, north positive. Use with longitude and timezone instead of location.
longitudeoptional
number | null
Longitude in decimal degrees, east positive. Use with latitude and timezone instead of location.
timezoneoptional
string | null
IANA timezone string
Response fields
success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.status
string
ok, or no_sunrise when the place has no sunrise or sunset on that date (polar latitudes): the window fields are then null.
data.status_detail
string | null
Plain-English reason when status is not ok.
data.date
string
Date for which Rahu Kaal is calculated (YYYY-MM-DD).
data.sunrise
string | null
Sunrise time in HH:MM local time.
data.sunrise_at
string | null
Sunrise time, ISO 8601 local time with date and UTC offset.
data.sunrise_utc
string | null
Sunrise time, ISO 8601 UTC with Z.
data.sunset
string | null
Sunset time in HH:MM local time.
data.sunset_at
string | null
Sunset time, ISO 8601 local time with date and UTC offset.
data.sunset_utc
string | null
Sunset time, ISO 8601 UTC with Z.
data.rahu_kaal
KaalPeriod | null
Rahu Kaal period — inauspicious for new beginnings.
data.gulika_kaal
KaalPeriod | null
Gulika Kaal (Mandi) period — inauspicious.
data.yamaganda_kaal
KaalPeriod | null
Yamaganda Kaal period — inauspicious.
Errors
Invalid API key format.
API key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.
The provided API key was not found. Verify the key in your Asterwise dashboard.
This API key has been revoked.
Too many requests per minute. Please slow down.
Something went wrong on our end. Please try again, or contact [email protected] if the problem persists. Include your request_id when contacting support.
Too many requests from this IP address. Please slow down.
Monthly API call limit reached. Upgrade your plan to continue.
Request body exceeds maximum allowed size of 64KB.
Your subscription has expired. Please renew at asterwise.com/dashboard to continue.
The request couldn't be processed. See the 'details' field for specific field-level issues.