Free Diwali date API and dataset
Diwali dates for 100 years, 15 Hindu festivals and Lakshmi Puja times in 43 world cities, as plain JSON and CSV files. Free to use under CC BY 4.0, no key, no sign-up.
Files
Every file is a static download. JSON files start with a meta object (licence, attribution, source, method, generated date and a note), followed by rows. Calculated values may differ from your local panchang. Dates can differ by a day between cities and traditions.
Diwali dates 2026 to 2125 (JSON)
One row per year from 2026 to 2125: the Diwali date in India, weekday and status, with the New Delhi Lakshmi Puja timings for verified years. https://diwalicountdown.in/data/diwali-dates.json
| Field | Type | Meaning |
|---|---|---|
year | number | Gregorian year. |
date | string | Lakshmi Puja (main Diwali) day in India, YYYY-MM-DD, IST calendar day. |
weekday | string | English weekday of the date. |
status | string | verified or calculated. |
source | string | Where the date comes from. |
muhurat_startmuhurat_end | string or null | New Delhi Lakshmi Puja muhurat, HH:MM IST, verified years only. |
pradosh_startpradosh_end | string or null | New Delhi Pradosh Kaal, HH:MM IST, verified years only. |
vrishabha_startvrishabha_end | string or null | New Delhi Vrishabha lagna, HH:MM IST, verified years only. |
amavasya_startamavasya_end | string or null | Amavasya tithi start and end, ISO date-time at +05:30, verified years only. |
Diwali dates 2026 to 2125 (CSV)
The same rows as diwali-dates.json, as CSV with a header row. Empty cells are null. https://diwalicountdown.in/data/diwali-dates.csv
| Field | Type | Meaning |
|---|---|---|
year | number | Gregorian year. |
date | string | Lakshmi Puja (main Diwali) day in India, YYYY-MM-DD, IST calendar day. |
weekday | string | English weekday of the date. |
status | string | verified or calculated. |
source | string | Where the date comes from. |
muhurat_startmuhurat_end | string or null | New Delhi Lakshmi Puja muhurat, HH:MM IST, verified years only. |
pradosh_startpradosh_end | string or null | New Delhi Pradosh Kaal, HH:MM IST, verified years only. |
vrishabha_startvrishabha_end | string or null | New Delhi Vrishabha lagna, HH:MM IST, verified years only. |
amavasya_startamavasya_end | string or null | Amavasya tithi start and end, ISO date-time at +05:30, verified years only. |
Hindu festival dates, 10 years (JSON)
15 Hindu festivals for the current year and the next 9, New Delhi. Holi has verified years only; no calculated Holi date is published. https://diwalicountdown.in/data/hindu-festivals.json
| Field | Type | Meaning |
|---|---|---|
festival | string | Slug: makar-sankranti, maha-shivratri, holi, ram-navami, raksha-bandhan, janmashtami, ganesh-chaturthi, navratri, dussehra, karwa-chauth, dhanteras, choti-diwali, govardhan-puja, bhai-dooj, chhath-puja. |
name | string | Festival name in English. |
year | number | Gregorian year. |
date | string | Festival day, YYYY-MM-DD, IST calendar day. |
status | string | verified or calculated. |
Diwali date and muhurat in world cities (JSON)
Diwali date and Lakshmi Puja muhurat in local time for 43 cities outside India, for the current year and the next 2. All values are calculated. https://diwalicountdown.in/data/diwali-world.json
| Field | Type | Meaning |
|---|---|---|
year | number | Gregorian year. |
city | string | City name. |
country | string | Country or region. |
timezone | string | IANA time zone. |
date | string | Local Diwali (Lakshmi Puja) day, YYYY-MM-DD. |
muhurat_startmuhurat_end | string or null | Lakshmi Puja muhurat, HH:MM local time; null when Amavasya and Vrishabha lagna do not overlap in Pradosh. |
india_date | string | Diwali date in India that year. |
differs_from_india | boolean | true when the local date is not the India date. |
Dataset manifest (JSON)
Lists every file with its URL, the licence, attribution text, method note and build date. https://diwalicountdown.in/data/index.json
Add to your calendar
Subscribe once and the festival dates appear in Google Calendar, Apple Calendar or Outlook as all-day events. Calendar apps check for updates about once a week.
- All Hindu festivals: Subscribe · Google Calendar · Download .ics
- Diwali only: Subscribe · Google Calendar · Download .ics
Next date endpoint
https://diwalicountdown.in/data/next.json?festival=diwali returns the next date of one festival and the days left, counted in India (IST) calendar days, worked out when you call it. festival must be one of: diwali, makar-sankranti, maha-shivratri, holi, ram-navami, raksha-bandhan, janmashtami, ganesh-chaturthi, navratri, dussehra, karwa-chauth, dhanteras, choti-diwali, govardhan-puja, bhai-dooj, chhath-puja. Any other value gets a 400 error. Example response:
{
"festival": "diwali",
"year": 2027,
"date": "2027-10-29",
"days_left": 341,
"status": "verified"
}Examples
curl -s https://diwalicountdown.in/data/diwali-dates.json
curl -s "https://diwalicountdown.in/data/next.json?festival=diwali"const res = await fetch("https://diwalicountdown.in/data/diwali-dates.json");
const { meta, rows } = await res.json();
const diwali = rows.find((r) => r.year === 2027);
console.log(diwali.date, diwali.status, meta.attribution);import requests
data = requests.get("https://diwalicountdown.in/data/hindu-festivals.json", timeout=10).json()
for row in data["rows"]:
if row["festival"] == "navratri":
print(row["year"], row["date"], row["status"])=IMPORTDATA("https://diwalicountdown.in/data/diwali-dates.csv")Every file sends Access-Control-Allow-Origin: *, so browser code on any site can fetch it.
Licence and attribution
The data is licensed under Creative Commons Attribution 4.0 (CC BY 4.0). You can copy, change and use it, also commercially, as long as you credit the source with the text "Dates: diwalicountdown.in" and a link to this page or the home page. For example:
<a href="https://diwalicountdown.in/diwali-date-api">Dates: diwalicountdown.in</a>Accuracy
Verified means the date was checked against Drik Panchang for New Delhi: Diwali 2026 to 2033 and the 15 festivals for 2026 to 2030. Calculated means the date comes from this site's astronomical method (Sun and Moon positions, tithi, sunset and lagna), which reproduces all 24 known New Delhi Diwali dates from 2010 to 2033. Calculated dates are not a published almanac, and dates can differ by a day between cities and traditions. Read how we check dates.
Rate limits
There is no key and no hard limit; the files are static and cached for a day. Please be reasonable: download a file once and cache it rather than fetching it on every page view.
Changelog
18 November 2026: first release with diwali-dates (JSON and CSV), hindu-festivals, diwali-world, index.json and the next.json endpoint.