🔌 Free Panchang API

The Hindu Panchang and the festival calendar as JSON: tithi, nakshatra, yoga, karana, Rahu Kaal, sunrise and sunset, Hindu month and the festivals of each day. No key, no sign-up, works from any website.

Try it

https://astrodeekssha.in/api/panchang?date=2026-12-05

{
    "data": {
        "date": "2026-12-05",
        "weekday": "Saturday",
        "weekday_hi": "शनिवार",
        "location": {
            "slug": "delhi",
            "name": "New Delhi",
            "name_hi": "नई दिल्ली",
            "latitude": 28.6139,
            "longitude": 77.209,
            "timezone": "Asia/Kolkata"
        },
        "sunrise": "06:59",
        "sunset": "17:24",
        "moonrise": "04:28",
        "moonset": "14:40",
        "tithi": [
            {
                "paksha": "Krishna",
                "name": "Dwadashi",
                "name_hi": "द्वादशी",
                "number": 12,
                "ends_at": "00:52",
                "ends_next_day": true
            },
            {
                "paksha": "Krishna",
                "name": "Trayodashi",
                "name_hi": "त्रयोदशी",
                "number": 13,
                "ends_at": "02:22",
                "ends_next_day": false
            }
        ],
        "nakshatra": [
            {
                "name": "Chitra",
                "name_hi": "चित्रा",
                "pada": 4,
                "ends_at": "11:48",
                "ends_next_day": false
            },
            {
                "name": "Swati",
                "name_hi": "स्वाति",
                "pada": 1,
                "ends_at": "13:37",
                "ends_next_day": true
            }
        ],
        "yoga": [
            {
                "name": "Saubhagya",
                "name_hi": "सौभाग्य",
                "ends_at": "07:51",
                "ends_next_day": false
            },
            {
                "name": "Shobhana",
                "name_hi": "शोभन",
                "ends_at": "07:40",
                "ends_next_day": true
            }
        ],
        "karana": [
            {
                "name": "Kaulava",
                "name_hi": "कौलव",
                "ends_at": "12:16",
                "ends_next_day": false
            },
            {
                "name": "Taitila",
                "name_hi": "तैतिल",
                "ends_at": "00:52",
                "ends_next_day": true
            },
            {
                "name": "Gara",
                "name_hi": "गर",
                "ends_at": "13:35",
                "ends_next_day": true
            }
        ],
        "hindu_month": {
            "amanta": "Kartika",
            "amanta_hi": "कार्तिक",
            "purnimanta": "Margashirsha",
            "purnimanta_hi": "मार्गशीर्ष",
            "adhika": false
        },
        "vikram_samvat": 2083,
        "shaka_samvat": 1948,
        "ritu": {
            "name": "Sharad (Autumn)",
            "name_hi": "शरद"
        },
        "ayana": {
            "name": "Dakshinayana",
            "name_hi": "दक्षिणायन"
        },
        "sun_sign": {
            "name": "Vrischika (Scorpio)",
            "name_hi": "वृश्चिक"
        },
        "moon_sign": {
            "name": "Tula (Libra)",
            "name_hi": "तुला",
            "ends_at": "09:13",
            "ends_next_day": false
        },
        "rahu_kaal": {
            "start": "09:35",
            "end": "10:53"
        },
        "yamaganda": {
            "start": "13:29",
            "end": "14:47"
        },
        "gulika_kaal": {
            "start": "06:59",
            "end": "08:17"
        },
        "abhijit_muhurat": {
            "start": "11:50",
            "end": "12:32"
        },
        "brahma_muhurta": {
            "start": "05:23",
            "end": "06:11"
        },
        "events": [],
        "page": "https://astrodeekssha.in/panchang/2026-12-05"
    },
    "meta": {
        "source": "https://astrodeekssha.in/",
        "license": "…",
        "location": "New Delhi"
    }
}

Quick start

One address, an optional date and an optional city. Leave the date out for today (IST) and the city out for New Delhi.

curl

curl "https://astrodeekssha.in/api/panchang?date=2026-12-05"
curl "https://astrodeekssha.in/api/panchang/2026-12-05?pretty=1"
curl "https://astrodeekssha.in/api/panchang?date=2026-12-05&days=7"
curl "https://astrodeekssha.in/api/panchang?city=mumbai&date=2026-12-05"
curl "https://astrodeekssha.in/api/cities"

JavaScript

const r = await fetch('https://astrodeekssha.in/api/panchang?date=2026-12-05');
const { data } = await r.json();
console.log(data.tithi[0].name, data.rahu_kaal.start, data.rahu_kaal.end);

Python

import requests
j = requests.get('https://astrodeekssha.in/api/panchang', params={'date': '2026-12-05'}, timeout=20).json()
d = j['data']
print(d['tithi'][0]['name'], d['sunrise'], d['rahu_kaal'])

Endpoints and parameters

AddressWhat it returns
/api/panchangToday in New Delhi. Add date=YYYY-MM-DD for another date, days=2 to 31 for a run of dates, city=mumbai for another city (slugs at /api/cities), pretty=1 for indented JSON.
/api/citiesThe nine cities city= accepts: slug, English and Hindi name, latitude, longitude, the dates covered and an example address.
/api/panchang/YYYY-MM-DDThe same, with the date in the path. /api/panchang/today also works.
/api/festivals?year=2027Every festival, vrat, ekadashi and tithi day of the year with date, English and Hindi name, category and a major flag. Add category=festival (or vrat, ekadashi, tithi) or major=1 to filter. /api/festivals/2027 also works.
/api/openapi.jsonOpenAPI 3.1 description, for code generators and AI assistants.

What is in each answer

FieldMeaning
tithi[]paksha, name, name_hi, number (1 to 15), ends_at, ends_next_day. The first is the tithi at sunrise.
nakshatra[]name, name_hi, pada (1 to 4), ends_at, ends_next_day
yoga[], karana[]name, name_hi, ends_at, ends_next_day
sunrise, sunset, moonrise, moonsetHH:MM, 24-hour IST; null when the Moon does not rise that day, and always null for a city other than New Delhi
rahu_kaal, yamaganda, gulika_kaal, abhijit_muhurat, brahma_muhurta{ start, end } in HH:MM
hindu_monthamanta, purnimanta (English and Hindi names) and adhika (true in an extra month)
vikram_samvat, shaka_samvat, ritu, ayana, sun_sign, moon_signYear numbers, season, ayana, and the Sun and Moon rashi (the Moon sign has its own ends_at)
events[]Festivals and observances of the day: id, name, name_hi, type

Errors

Errors are JSON too: 400 for a date, days or city value that is not valid (an invalid city lists the allowed slugs), 404 for a date outside the data (with available_from and available_to), 405 for any method other than GET.

Use and credit

Free for apps, websites and research, also commercial ones. Please show a visible link to astrodeekssha.in near the data. Do not use it to train AI models. Panchang values are computed, and some regional traditions can differ by a day; for a puja or a marriage date, ask your family pandit.

Looking for something to put on a page without code? Use the free website widgets.

Website widgets OpenAPI Today's Panchang Hindu calendar

Panchang API – questions answered

Is the Panchang API free? Do I need a key?

It is free and needs no key, no sign-up and no account. Call the address and read the JSON. In return we ask for a visible link back to this page or to astrodeekssha.in wherever you show the data. Please do not use the data to train AI models.

Which place and time zone does it use?

New Delhi unless you add city=, for example city=mumbai. Nine cities are served: New Delhi, Mumbai, Kolkata, Chennai, Bengaluru, Hyderabad, Ahmedabad, Pune and Lucknow (the list with their coordinates is at /api/cities). All times are Indian Standard Time (Asia/Kolkata), written HH:MM in 24 hours. The Panchang day runs from sunrise to sunrise, so a tithi or nakshatra that ends after midnight is marked ends_next_day: true. Other cities are not in the API yet; the website has pages for 80+ more.

What changes when I ask for a city?

Sunrise and sunset, the times a tithi, nakshatra, yoga or karana ends, Rahu Kaal, Yamaganda, Gulika, Abhijit and Brahma Muhurta are the city's own, and so are its festival days. The Hindu month, Vikram and Shaka year, season, ayana and the Sun and Moon sign are the same for every place on a date, so they are taken from the New Delhi record (the answer lists them in meta.values_from_new_delhi). Moonrise and moonset depend on the place and are not held for the cities, so they are null (meta.not_available). The page link is null too, because the date pages on the site show New Delhi.

Why does a date list two tithis or two nakshatras?

A tithi, nakshatra, yoga or karana changes at its own time, not at sunrise, so one day can hold two or three of them. Each entry has ends_at, the time it ends. The first entry is the one running at sunrise.

How far ahead and back does the data go, and how many dates can I ask for?

The data covers 2026-01-01 – 2029-12-31. One call returns up to 31 consecutive dates (days=31); to read a whole year, call once a month and keep the result. A date outside the range answers 404 with available_from and available_to.

How often may I call it?

There is no fixed quota, but the answers are cached for an hour (15 minutes for today), so please keep your own copy rather than calling for every page view. A panchang date does not change once computed. Heavy automated use may be slowed down or blocked to keep the site fast for everyone.

Can I call it from a web page or an app (CORS)?

Yes. The API sends Access-Control-Allow-Origin: *, so a browser can call it directly from any website. It only accepts GET.

Can an AI assistant use it?

Yes. There is an OpenAPI description at /api/openapi.json, and the same Panchang is also offered through the site's read-only MCP server at /mcp for AI assistants that support it.

Are the values the same as the Panchang pages?

Yes for New Delhi: the API reads the same monthly data files as the Panchang pages, so a date shows the same tithi, nakshatra and times in both. The other cities use their own monthly files, the same ones behind the city pages of Brahma Muhurta and the daily Panchang e-mail. Lahiri ayanamsa is used, and some regional traditions can differ by a day.