Skip to main content

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.

Endpoint

POST /v1/astro/panchanga/rahu-kaal

Request parameters

FieldTypeRequiredDescription
datestringYesDate in YYYY-MM-DD format
locationstring | nullNoCity name. Example: 'Mumbai'
latitudenumber | nullNo
longitudenumber | nullNo
timezonestring | nullNoIANA timezone string

Example request

curl -X POST "https://api.asterwise.com/v1/astro/panchanga/rahu-kaal" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"1990-05-15","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"}'

Example response

{
"success": true,
"message": "success",
"data": {
"date": "1990-05-15",
"sunrise": "05:29",
"sunset": "19:03",
"rahu_kaal": {
"start": "15:40",
"end": "17:22",
"duration_minutes": 102,
"is_active": false
},
"gulika_kaal": {
"start": "12:16",
"end": "13:58",
"duration_minutes": 102,
"is_active": false
},
"yamaganda_kaal": {
"start": "07:11",
"end": "08:53",
"duration_minutes": 102,
"is_active": false
}
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.datestringDate for which Rahu Kaal is calculated (YYYY-MM-DD).
data.sunrisestringSunrise time in HH:MM local time.
data.sunsetstringSunset time in HH:MM local time.
data.rahu_kaalobject
data.rahu_kaal.startstringPeriod start time in HH:MM local time.
data.rahu_kaal.endstringPeriod end time in HH:MM local time.
data.rahu_kaal.duration_minutesintegerDuration of the period in minutes.
data.rahu_kaal.is_activebooleanTrue if this period is currently active.
data.gulika_kaalobject
data.gulika_kaal.startstringPeriod start time in HH:MM local time.
data.gulika_kaal.endstringPeriod end time in HH:MM local time.
data.gulika_kaal.duration_minutesintegerDuration of the period in minutes.
data.gulika_kaal.is_activebooleanTrue if this period is currently active.
data.yamaganda_kaalobject
data.yamaganda_kaal.startstringPeriod start time in HH:MM local time.
data.yamaganda_kaal.endstringPeriod end time in HH:MM local time.
data.yamaganda_kaal.duration_minutesintegerDuration of the period in minutes.
data.yamaganda_kaal.is_activebooleanTrue if this period is currently active.

Errors

CodeDescriptionReference
authentication_failedMissing or invalid API key.authentication_failed
ephemeris_unavailableUpstream ephemeris service error.ephemeris_unavailable
insufficient_tierAPI key tier does not include this endpoint.insufficient_tier
internal_errorUnexpected server error.internal_error
ip_rate_limit_exceededToo many requests in a short window.ip_rate_limit_exceeded
payload_too_largeRequest body exceeds the size limit.payload_too_large
resource_not_foundReferenced resource was not found.resource_not_found
validation_errorRequest body failed schema validation.validation_error