The Panchang, as a clean API
A free, rate-limited REST API for Hindu Panchang, Choghadiya, sunrise/sunset and the key muhurat periods — sidereal (Lahiri), validated against standard almanacs.
Free
with an API key
60 / min
per-IP rate limit
9+
JSON endpoints
Validated
to the minute
Get your API key
No login required — enter an email and your key appears instantly.
Then send it on every request as the X-API-Key header:
curl -H "X-API-Key: sk_live_YOUR_KEY" \
"https://shubh.live/api/v1/panchang?lat=28.6139&lon=77.2090&date=2026-06-26"Base URL & rate limits
https://shubh.live/api/v1Responses are JSON; times are ISO-8601 with the location's timezone offset (e.g. 2026-06-26T22:23:20+05:30). The free tier allows 60 requests/min per IP; exceeding it returns 429. Please cache (a day's panchang for a location doesn't change). Bulk/combinatorial sweeping without a key is throttled.
Endpoints
/api/v1/panchangThe five limbs (Tithi, Nakshatra, Yoga, Karana, Vara) with end-times, plus Paksha, lunar month (with Adhik/leap detection), Vikram Samvat + samvatsara, sidereal Moon/Sun Rashi, and sun/moon timings.
Query parameters
lat(required) — latitude, -90 to 90lon(required) — longitude, -180 to 180date(optional) — YYYY-MM-DD (defaults to today)
Example response
{
"date": "2026-06-26", "tz": "Asia/Kolkata",
"sunrise": "2026-06-26T05:25:00+05:30",
"tithi": { "name": "Dwadashi", "number": 12, "paksha": "Shukla", "endsAt": "..." },
"nakshatra": { "name": "Vishakha", "pada": 3, "endsAt": "..." },
"yoga": { "name": "Siddha", "endsAt": "..." },
"moonRashi": { "sa": "Tula", "en": "Libra" },
"lunarMonth": { "amanta": "Jyeshtha", "isAdhika": false },
"samvat": { "vikram": 2082, "samvatsara": "Kalayukta" }
}/api/v1/panchang/monthA compact per-day Panchang summary for a whole calendar month with parva markers (Purnima, Amavasya, Sankranti). Useful for calendar grids.
Query parameters
lat(required) — latitudelon(required) — longitudeyear(optional) — e.g. 2026month(optional) — 1-12
/api/v1/panchang/festivalsMajor Hindu festival dates for a year, each resolved with the correct anchor (udaya / madhyahna / aparahna / pradosh) and validated against standard almanacs.
Query parameters
lat(required) — latitudelon(required) — longitudeyear(optional) — e.g. 2026
/api/v1/panchang/ekadashiEkadashi observance days for a year (Smarta + Vaishnava, with Parana). Handles normal, vriddhi and kshaya cases.
Query parameters
lat(required) — latitudelon(required) — longitudeyear(optional) — e.g. 2026month(optional) — 1-12 (optional)
/api/v1/horaThe 24 planetary horas (day + night) with ruling planet and nature.
Query parameters
lat(required) — latitudelon(required) — longitudedate(optional) — YYYY-MM-DD
/api/v1/eclipsesSolar and lunar eclipses for a year, with visibility at the location.
Query parameters
lat(required) — latitudelon(required) — longitudeyear(optional) — e.g. 2026
/api/v1/muhuratAuspicious dates for an activity (vivah, griha-pravesh, vehicle, shubh) in a date range.
Query parameters
activity(required) — vivah | griha-pravesh | vehicle | shubhlat(required) — latitudelon(required) — longitudefrom(optional) — YYYY-MM-DDto(optional) — YYYY-MM-DD
/api/v1/day-periodsRahu Kaal, Yamaganda, Gulika Kaal and Abhijit Muhurat, each with start/end.
Query parameters
lat(required) — latitudelon(required) — longitudedate(optional) — YYYY-MM-DD
/api/v1/choghadiyaThe 16 Choghadiya segments (8 day + 8 night) with type, timing and goodFor activities.
Query parameters
lat(required) — latitudelon(required) — longitudedate(optional) — YYYY-MM-DD
/api/v1/sunSunrise and sunset for a location and date.
Query parameters
lat(required) — latitudelon(required) — longitudedate(optional) — YYYY-MM-DD
Accuracy & conventions
- Sidereal positions use the Lahiri (Chitrapaksha) ayanamsa, computed at local sunrise.
- Lunar month and Vikram Samvat use the Amanta / Gujarati (Kartik) reckoning.
- Validated against standard Vedic almanacs across 40+ dates; Tithi/Nakshatra/Yoga match to the minute.
- Moonrise/moonset are accurate to a few minutes (horizon-model dependent).
Terms
Free for personal and commercial use. Please don't abuse the rate limit, and attribute “Powered by ShubhAI (shubh.live)” where practical. Provided as-is, for informational purposes; not a substitute for a qualified astrologer.