vibz.art/docs
API ReferenceLilavati

Compute Festivals

Compute Hindu festival dates for a year and location. The ``calendar_system`` parameter affects Krishna Paksha festival dates. Shukla Paksha festivals are identical in both Purnimant and Amant systems. Each festival is enriched with shastric metadata from lilavati's curated set when available — shloka, presiding deity, kathā summary, Kadambini verse refs. Festivals without a metadata entry return ``metadata: null`` and the caller falls back gracefully.

GET /lilavati/v1/festivals

Compute Hindu festival dates for a year and location.

The calendar_system parameter affects Krishna Paksha festival dates. Shukla Paksha festivals are identical in both Purnimant and Amant systems.

Each festival is enriched with shastric metadata from lilavati's curated set when available — shloka, presiding deity, kathā summary, Kadambini verse refs. Festivals without a metadata entry return metadata: null and the caller falls back gracefully.

Parameters

ParameterTypeRequiredDescription
yearintegerNoYear. Defaults to current year.
calendar_systemstringNoLunar calendar system: purnimant (North India) or amant (South/West). Default: purnimant
latnumberYesLatitude
lngnumberYesLongitude
tzstringNoIANA timezone (e.g. 'Asia/Kolkata') Default: Asia/Kolkata
altitudenumberNoAltitude in meters Default: 0

Response

Returns an array of EnrichedFestivalInfo objects.

FieldTypeDescription
idstringFestival identifier (e.g. 'diwali')
namestringFestival display name
datestringFestival date
sunrise`stringnull` (optional)
tithi_at_sunriseintegerTithi number at sunrise
lunar_monthstringLunar month name
is_adhik_monthboolean (optional)Whether in Adhik month
reasoningstringExplanation of date determination
priority_appliedstring (optional)Observance rule applied — one of: paraviddha, puurvaviddha, vyapti, sankranti, nakshatra_at_sunrise.
kaala_appliedstring (optional)Kaala (time-window) checked for vyapti resolution; empty when not applicable
alternate`AlternateObservancenull` (optional)
metadata`FestivalMetadatanull` (optional)

On this page