Skip to main content

Choghadiya periods

Calculate all 16 Choghadiya periods (8 day + 8 night) for a given date and location. Each period is classified (e.g. highly auspicious for Amrit, good, beneficial, neutral, or inauspicious) with the ruling planet.

Endpoint

POST /v1/astro/panchanga/choghadiya

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/choghadiya" \
-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",
"day_choghadiya": [
{
"period": 1,
"name": "Rog",
"type": "inauspicious",
"ruling_planet": "Mars",
"suitable_for": "Avoid important activities",
"start": "05:29",
"end": "07:11",
"is_current": false
},
{
"period": 2,
"name": "Udveg",
"type": "inauspicious",
"ruling_planet": "Sun",
"suitable_for": "Avoid new beginnings",
"start": "07:11",
"end": "08:53",
"is_current": false
},
"... and 6 more items"
],
"night_choghadiya": [
{
"period": 1,
"name": "Kaal",
"type": "inauspicious",
"ruling_planet": "Saturn",
"suitable_for": "Avoid auspicious activities",
"start": "19:03",
"end": "20:21",
"is_current": false
},
{
"period": 2,
"name": "Labh",
"type": "auspicious",
"ruling_planet": "Mercury",
"suitable_for": "Business, trade, new ventures",
"start": "20:21",
"end": "21:40",
"is_current": false
},
"... and 6 more items"
]
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.datestringDate for which Choghadiya is calculated (YYYY-MM-DD).
data.sunrisestringSunrise time in HH:MM local time.
data.sunsetstringSunset time in HH:MM local time.
data.day_choghadiyaarray[object]8 Choghadiya periods from sunrise to sunset.
data.day_choghadiya[].periodintegerPeriod number, 1 to 8.
data.day_choghadiya[].namestringChoghadiya name, e.g. Amrit, Shubh, Kaal.
data.day_choghadiya[].typestringClassification: highly auspicious, auspicious, or inauspicious.
data.day_choghadiya[].ruling_planetstringPlanet ruling this Choghadiya period.
data.day_choghadiya[].suitable_forstringActivities suited to this period.
data.day_choghadiya[].startstringPeriod start time in HH:MM local time.
data.day_choghadiya[].endstringPeriod end time in HH:MM local time.
data.day_choghadiya[].is_currentbooleanTrue if this period is currently active.
data.night_choghadiyaarray[object]8 Choghadiya periods from sunset to next sunrise.
data.night_choghadiya[].periodintegerPeriod number, 1 to 8.
data.night_choghadiya[].namestringChoghadiya name, e.g. Amrit, Shubh, Kaal.
data.night_choghadiya[].typestringClassification: highly auspicious, auspicious, or inauspicious.
data.night_choghadiya[].ruling_planetstringPlanet ruling this Choghadiya period.
data.night_choghadiya[].suitable_forstringActivities suited to this period.
data.night_choghadiya[].startstringPeriod start time in HH:MM local time.
data.night_choghadiya[].endstringPeriod end time in HH:MM local time.
data.night_choghadiya[].is_currentbooleanTrue 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