Shastra Panchangam

Panchangam API

Access daily panchangam calculations in JSON format, without an API key. The API supports cross-origin requests. Calculations use the Drik method with Lahiri ayanamsha and local sunrise for each city.

Endpoints

/api/v1/today/{city}.json

Today for one city.

/api/v1/day/{city}/{YYYY-MM-DD}.json

One named day.

/api/v1/range/{city}.json?from=YYYY-MM-DD&days=31

Up to 366 days.

/api/v1/cities.json

The 26 cities the today, day and range endpoints serve, with coordinates. The city endpoint below serves all 150.

/api/v1/festivals.json

Festival dates, with the day each city keeps.

/api/v1/city/{city}/{YYYY-MM-DD}.json

One day for any listed city, in its local time (ISO 8601 with the UTC offset). today.json gives the city's today.

/api/v1/meta.json

Field order, name tables, range.

Times

In the endpoints above for the Indian cities, every time is minutes from India midnight (IST) of that date. A value above 1440 means the following day, so a tithi ending at 1531 ends at 1:31 am the next day.

In /api/v1/city/, every time is ISO 8601 in the city's own local time, with its UTC offset.

Location

Keep the city and date with each record. Sunrise, sunset and the derived daily periods are specific to that location.

Each festival record gives Delhi's dates in dates. For a city in local_dates, use that city's dates; they match its daily pages.

Attribution

Use it freely, commercially or not. A link back to shastrapanchangam.com is appreciated.

Example

curl https://shastrapanchangam.com/api/v1/today/bengaluru.json

See the response · festivals · cities

How each value is computed · why the day starts at sunrise