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

FieldTypeMeaning
yearnumberGregorian year.
datestringLakshmi Puja (main Diwali) day in India, YYYY-MM-DD, IST calendar day.
weekdaystringEnglish weekday of the date.
statusstringverified or calculated.
sourcestringWhere the date comes from.
muhurat_start
muhurat_end
string or nullNew Delhi Lakshmi Puja muhurat, HH:MM IST, verified years only.
pradosh_start
pradosh_end
string or nullNew Delhi Pradosh Kaal, HH:MM IST, verified years only.
vrishabha_start
vrishabha_end
string or nullNew Delhi Vrishabha lagna, HH:MM IST, verified years only.
amavasya_start
amavasya_end
string or nullAmavasya 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

FieldTypeMeaning
yearnumberGregorian year.
datestringLakshmi Puja (main Diwali) day in India, YYYY-MM-DD, IST calendar day.
weekdaystringEnglish weekday of the date.
statusstringverified or calculated.
sourcestringWhere the date comes from.
muhurat_start
muhurat_end
string or nullNew Delhi Lakshmi Puja muhurat, HH:MM IST, verified years only.
pradosh_start
pradosh_end
string or nullNew Delhi Pradosh Kaal, HH:MM IST, verified years only.
vrishabha_start
vrishabha_end
string or nullNew Delhi Vrishabha lagna, HH:MM IST, verified years only.
amavasya_start
amavasya_end
string or nullAmavasya 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

FieldTypeMeaning
festivalstringSlug: 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.
namestringFestival name in English.
yearnumberGregorian year.
datestringFestival day, YYYY-MM-DD, IST calendar day.
statusstringverified 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

FieldTypeMeaning
yearnumberGregorian year.
citystringCity name.
countrystringCountry or region.
timezonestringIANA time zone.
datestringLocal Diwali (Lakshmi Puja) day, YYYY-MM-DD.
muhurat_start
muhurat_end
string or nullLakshmi Puja muhurat, HH:MM local time; null when Amavasya and Vrishabha lagna do not overlap in Pradosh.
india_datestringDiwali date in India that year.
differs_from_indiabooleantrue 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.

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:

Response
{
  "festival": "diwali",
  "year": 2027,
  "date": "2027-10-29",
  "days_left": 341,
  "status": "verified"
}

Examples

curl
curl -s https://diwalicountdown.in/data/diwali-dates.json
curl -s "https://diwalicountdown.in/data/next.json?festival=diwali"
JavaScript fetch
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);
Python requests
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"])
Google Sheets
=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:

Attribution link
<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.

Frequently asked questions

Is the Diwali date API free?

Yes. The files and the next.json endpoint are free, with no key and no sign-up. The licence is CC BY 4.0: credit "Dates: diwalicountdown.in" with a link.

How far ahead does the dataset go?

Diwali dates run from 2026 to 2125. The festival file covers the current year and the next 9, and the world cities file the current year and the next 2.

Why is there no Holi date after 2030?

Holi is published only for the years checked against Drik Panchang (2026 to 2030). Its Holika Dahan day follows a Bhadra rule this site does not calculate, so no calculated Holi date is given.

How often is the data updated?

The files are rebuilt every time the site is updated. Each file's meta.generated field, and last_built in index.json, show when.