Panchang API demo
This tool makes one real call to GET /v1/panchang (1 credit) with the shared demo key and shows the response. Change the date, lat and lon, then press Send. It is here so you can see the shape of the data before you write code against it.
Try it
What comes back
- tithi: its number (1 to 30), name, paksha and the moment it ends, as an ISO time in the place's own zone.
- nakshatra, yoga and karana: name, label and number, and for the nakshatra its lord and when it ends.
- vara, sunrise and sunset, with Rahu Kaal, Gulika, Yamaganda and Abhijit as start and end times.
- timezone: the IANA zone and UTC offset used for every time in the response.
Every value has a stable id (saptami, mrigashira) for your code and a label for people. Add lang=hi to get Hindi labels.
The same call in code
curl 'https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209' \
-H 'Authorization: Bearer al_test_YOUR_KEY'import json
import urllib.error
import urllib.request
req = urllib.request.Request(
"https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209",
method="GET",
headers={"Authorization": "Bearer al_test_YOUR_KEY"},
)
try:
with urllib.request.urlopen(req) as res:
print(json.dumps(json.load(res), indent=2, ensure_ascii=False))
except urllib.error.HTTPError as err:
print(err.code, err.read().decode())const res = await fetch("https://api.astrologics.in/v1/panchang?date=2026-10-02&lat=28.6139&lon=77.209", {
headers: { Authorization: "Bearer al_test_YOUR_KEY" },
});
console.log(JSON.stringify(await res.json(), null, 2));Questions
Do I need a key to use this demo?
No. The demo uses a shared test key with a small daily allowance per visitor. For your own app, create a free key: test keys are never charged.
How is sunrise worked out?
From the upper limb of the Sun with refraction, at the latitude and longitude you send. The vara and every daily period run from it. The rest is on conventions.
Where are choghadiya and muhurat?
In their own calls: try the choghadiya demo, or see the panchang and muhurat reference.
Looking for today's panchang for yourself rather than an API? It is on astrologics.in.