Developer documentation

Calculate daily Panchang and birth charts, find geographic coordinates, and read Bhagavad Gita verses through the public JSON API.

Open the interactive reference Download OpenAPI JSON

Quick start

Use the versioned base URL https://api.shaswatgyan.org/api/public/v1. Public API requests do not require an API key.

Check service health

curl 'https://api.shaswatgyan.org/api/public/v1/health'

Look up the Panchang for a date and place

curl 'https://api.shaswatgyan.org/api/public/v1/panchang?date=2026-12-03&lat=28.6139&lon=77.2090&tz=5.5'

Dates use YYYY-MM-DD. Supply latitude and longitude as decimal degrees and tz as the UTC offset in hours for the requested date. India Standard Time is 5.5. Date-times in the response are serialized as ISO 8601 timestamps in UTC. Moonrise or moonset may be null when no event is found on that local date.

Get a Bhagavad Gita chapter

curl 'https://api.shaswatgyan.org/api/public/v1/gita/chapter?c=2'

Verse records include Sanskrit (sa), transliteration (tl), English and Hindi meanings (en and hi), and word meanings when available (wm).

Daily Panchang archive

The public web archive uses /panchang/archive/{city}/{date} on the main site. Use a listed city slug and an ISO date from through . The coordinate-based endpoint above returns JSON for application integrations.

Browse the archive

Responses and errors

Successful results return JSON. 400 indicates invalid or unsupported input, 404 indicates an unknown endpoint, and 500 indicates a calculation or server error. Invalid-request responses can include an issues array with field details. An empty list can be a valid response to a search.

Use fictional birth details when trying Kundli or matching requests in the reference. Be prepared to handle throttling and transient service errors when integrating.