Choghadiya API demo
One real call to GET /v1/panchang/choghadiya (1 credit): a date, a latitude and a longitude in, the eight day and eight night choghadiya out. Change the values and press Send.
Try it
What comes back
periods lists all sixteen in order. Each has its name (amrit, shubh, labh, char, rog, kaal, udveg), a quality (excellent, good, neutral, caution or avoid), day or night, and its start and end in the place's own zone. is_current and minutes_left mark the running period when the date is today, so a widget can highlight it.
The day runs from sunrise to sunset and the night from sunset to the next sunrise, each split into eight equal parts. That is why the periods are not 90 minutes long except near the equinoxes, and why the place matters.
The same call in code
curl 'https://api.astrologics.in/v1/panchang/choghadiya?date=2026-10-02&lat=28.6139&lon=77.209' \
-H 'Authorization: Bearer al_test_YOUR_KEY'const res = await fetch("https://api.astrologics.in/v1/panchang/choghadiya?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));import json
import urllib.error
import urllib.request
req = urllib.request.Request(
"https://api.astrologics.in/v1/panchang/choghadiya?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())Questions
Is there hora as well?
Yes: GET /v1/panchang/hora (1 credit) returns the 24 planetary hours.
Can I search for a good time for an activity?
GET /v1/muhurat/day (1 credit) judges one day for an activity, and GET /v1/muhurat/search (2 credits) looks across dates. See the panchang demo for the day itself.
Can I show it on my site without a server?
The panchang widget shows the day's tithi, nakshatra, sunrise and Rahu Kaal from one script tag and a publishable key. Choghadiya needs this call from your server.
Looking for today's choghadiya for yourself? It is on astrologics.in.