Skip to main content

Hindu festival calendar

Compute all major Hindu festival dates for a given year and location. Returns 20 pan-Hindu festivals including solar sankrantis (Makar Sankranti, Vaisakhi) and tithi-based festivals (Diwali, Holi, Dussehra, Janmashtami, Ganesh Chaturthi, Ram Navami, and 12 others). All dates are astronomically computed — no hardcoded dates. Tithi festivals use the Sun-Moon elongation at local sunrise with Lahiri sidereal ayanamsa. Location is required for accurate sunrise-based tithi determination.

Endpoint

GET /v1/astro/panchanga/festivals

Request parameters

FieldTypeRequiredDescription
yearintegerYesCalendar year
locationstring | nullNoCity name
latitudenumber | nullNo
longitudenumber | nullNo
timezonestring | nullNoIANA timezone

Example request

curl -X GET "https://api.asterwise.com/v1/astro/panchanga/festivals?year=2026&latitude=28.6139&longitude=77.209&timezone=Asia%2FKolkata" \
-H "Authorization: Bearer YOUR_API_KEY"

Example response

{
"success": true,
"message": "success",
"data": {
"year": 2026,
"timezone": "Asia/Kolkata",
"total": 20,
"festivals": [
{
"name": "Makar Sankranti",
"date": "2026-01-14",
"type": "solar",
"description": "Sun's sidereal transit into Makara (Capricorn). Marks the start of Uttarayana — the northward journey of the Sun.",
"significance": "Harvest festival. Uttarayana begins. Associated with kite flying, sesame sweets (til-gul), and holy dips in rivers. Know…"
},
{
"name": "Maha Shivaratri",
"date": "2026-02-16",
"type": "tithi",
"description": "Krishna Paksha Chaturdashi of Magha or Phalguna month. The great night of Shiva.",
"significance": "Night-long vigil and fasting dedicated to Lord Shiva. Most auspicious night of the year for Shiva worship."
},
"... and 18 more items"
]
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.yearintegerCalendar year for which festivals are computed.
data.timezonestringIANA timezone used for sunrise-based tithi calculations.
data.totalintegerTotal number of festivals found.
data.festivalsarray[object]Festivals sorted chronologically by date.
data.festivals[].namestringFestival name.
data.festivals[].datestringFestival date in YYYY-MM-DD format.
data.festivals[].typestringFestival type: 'solar' (sankranti-based) or 'tithi' (lunar day-based).
data.festivals[].descriptionstringClassical basis for the festival date (tithi or sankranti).
data.festivals[].significancestringCultural and religious significance.

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