96Astro API

Documentation

Build a panchang calendar

A daily panchang and a monthly calendar for your users' city, with caching that keeps the cost low.

A panchang depends on the place, because a day is reckoned from local sunrise. So the first thing to decide is whose city you are showing.

One day

curl https://api.96astroapi.com/v1/panchang/daily-panchang   -H "Authorization: Bearer $ASTRO_API_KEY"   -H "Content-Type: application/json"   -d '{ "date": "2026-10-13", "timezone": "Asia/Kolkata", "latitude": 28.6139, "longitude": 77.209 }'

You get the five limbs with the time each one ends, sunrise, sunset, the Moon's phase, the Hindu calendar date, and Rahu Kaal and the other periods.

If you only need one part, use a single endpoint such as panchang-five-limbs or inauspicious-timings, which costs less. panchang-limb-details adds the deity and meaning of each limb.

One month

monthly-panchang returns every day of a month in one call, which costs far less than calling each day:

{ "year": 2026, "month": 10, "timezone": "Asia/Kolkata", "latitude": 28.6139, "longitude": 77.209 }

regional-calendar and tamil-calendar give regional forms, and vrat-calendar gives fasts and festivals.

Keep the cost low

A date and place always give the same panchang, so cache it. A good key is the date plus the city.

  • A site with one panchang: one call a day, cached for everyone.
  • A list of cities: one call per city a day, not one per visitor.
  • Round the coordinates: two decimals is about a kilometre, and changes the times by seconds. This stops every user getting their own cache entry.

Other languages

Send "language": "hi" for sentences in Hindi. Identifiers such as tithi names stay in English so that your code can rely on them, and "labels": "hi" adds their names in Hindi. See Languages.

No code?

The panchang widget embeds on any page, and the WordPress plugin does the same on WordPress.

On this page