Panchang API
Tithi, nakshatra, yoga, karana, sunrise, Rahu Kaal, choghadiya and hora for any place on Earth between the polar circles, from the same engine as this site. A free key gives 1,000 calls a month.
Your API key
Quick start
Send the key in the X-API-Key header. Every endpoint is a GET and answers JSON.
curl -H "X-API-Key: $LPJ_KEY" \ "https://kjivha8nnk.ap-south-1.awsapprunner.com/api/v1/panchang?date=2026-12-01&lat=28.6139&lon=77.209&tz=Asia/Kolkata"
const r = await fetch("https://kjivha8nnk.ap-south-1.awsapprunner.com/api/v1/panchang?" + new URLSearchParams({
date: "2026-12-01", lat: "40.73", lon: "-74.17", tz: "America/New_York",
}), { headers: { "X-API-Key": process.env.LPJ_KEY } });
const { data, attribution } = await r.json();The response for New Delhi on 1 December 2026, abridged:
{
"data": {
"date": "2026-12-01",
"location": {
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata"
},
"weekday": "Tuesday",
"sunrise": "2026-12-01T06:56+05:30",
"sunset": "2026-12-01T17:23+05:30",
"tithi": {
"index": 22,
"name": "Krishna Ashtami",
"start": "2026-12-01T00:12+05:30",
"end": "2026-12-01T23:14+05:30",
"paksha": "Krishna"
},
"nakshatra": {
"index": 9,
"name": "Magha",
"start": "2026-11-30T09:42+05:30",
"end": "2026-12-01T09:00+05:30"
},
"yoga": {
"index": 26,
"name": "Vaidhriti",
"start": "2026-11-30T14:26+05:30",
"end": "2026-12-01T12:14+05:30"
},
"karana": {
"index": 44,
"name": "Balava",
"start": "2026-12-01T00:12+05:30",
"end": "2026-12-01T11:38+05:30"
},
"rahuKaal": {
"start": "2026-12-01T14:46+05:30",
"end": "2026-12-01T16:04+05:30"
},
"yamaganda": {
"start": "2026-12-01T09:32+05:30",
"end": "2026-12-01T10:51+05:30"
},
"gulika": {
"start": "2026-12-01T12:09+05:30",
"end": "2026-12-01T13:27+05:30"
},
"abhijit": {
"start": "2026-12-01T11:48+05:30",
"end": "2026-12-01T12:30+05:30"
},
"choghadiya": {
"day": [
{
"name": "Rog",
"class": "ashubh",
"start": "2026-12-01T06:56+05:30",
"end": "2026-12-01T08:14+05:30"
},
"… 7 more"
],
"night": [
"… 8 parts"
]
},
"hora": [
{
"lord": "Mars",
"period": "day",
"start": "2026-12-01T06:56+05:30",
"end": "2026-12-01T07:48+05:30"
},
"… 23 more"
],
"moonrise": null
},
"attribution": "Panchang data: Live Pandit Ji (https://www.livepanditji.com)",
"attributionRequired": true,
"plan": "free"
}Endpoints
GET /v1/panchang
Parameters: date (YYYY-MM-DD), lat, lon, tz (IANA zone such as Asia/Kolkata, or an offset such as +05:30)
Returns: Tithi, nakshatra, yoga and karana at the local sunrise, each with its exact start and end; sunrise, sunset, next sunrise; Rahu Kaal, Yamaganda, Gulika, Abhijit, Brahma muhurat; 8 + 8 choghadiya; 24 horas.
GET /v1/muhurat
Parameters: activity (marriage, griha-pravesh, business, vehicle, namakaran, mundan, annaprashan, upanayan, property, travel), month (YYYY-MM, 2026-01 to 2027-12), city (optional; one of the site's 38 Indian panchang cities, e.g. mumbai)
Returns: The days of the month that pass the classical five-limb first pass (clear) or miss it on one limb (near-miss), with the reason for each miss and any closure such as Kharmas.
GET /v1/festivals
Parameters: year (2026, 2027 or 2028)
Returns: The festival dates the site's festival pages print (New Delhi), with tithi start and end where the rule uses one.
GET /v1/rashi-daily
Parameters: date, sign (optional: aries … pisces)
Returns: The rashifal pages' computed line for the day in English and Hindi: Moon sign, house from the rashi, Chandra Bala, nakshatra, and the page URLs.
Errors are JSON { "error": "…" }: 400 for a bad parameter (not counted against your quota), 401 for a missing or revoked key, 429 for the per-minute limit (with Retry-After) or the monthly quota. Successful answers carry X-Quota-Limit and X-Quota-Remaining headers. Any origin may call the API (CORS), but keep your key on your server.
How it is computed
The API calls the same functions that build this site's panchang pages. The tithi, nakshatra, yoga and karana changes come from the JPL DE421 ephemeris (Lahiri ayanamsa), precomputed for every change from 20 December 2025 to 10 January 2029. Each limb is read at the local sunrise of the coordinates you send, which is how the site's world-city panchang pages work. The site's Indian city pages print the all-India limbs read at the New Delhi sunrise, so on a day a limb changes between those two sunrises the two can differ.
Before each release, a script compares the API with the site's own references. It checks every day of 2026 to 2028 in New Delhi against the DE421 daily tables. It checks every 2026–2027 day for 38 Indian cities against their city pages, and every day of the world family for 20 cities abroad against the pages that are themselves checked against Skyfield on DE421 and the IANA zone database. Sunrise, sunset and every window agree to within a minute; the limbs and their end times agree exactly, except where a limb changes within two minutes of sunrise.
Not included: moonrise (the engine has no checked general moonrise routine yet), dates outside 2026-01-01 to 2028-12-31, and latitudes beyond 66°, where the Sun need not rise. Choghadiya classes are the almanac tradition's own labels, not recommendations.
Plans
Free: 1,000 calls a month. Starter: ₹999 a month for 1,00,000 calls. Pro: ₹4,999 a month for 10,00,000 calls.
Terms of use
- Attribution
- On the Free plan, show "Panchang data: Live Pandit Ji (https://www.livepanditji.com)" wherever the data is displayed, as a visible link to livepanditji.com. Paid plans do not require it.
- What the data is
- Calendar arithmetic computed from published rules and an ephemeris, for information. It is not advice of any kind, and nothing in it is a prediction about health, money or anyone's future. A muhurat shortlist is the first pass only; an event's lagna window still needs the charts of the people involved.
- Accuracy
- We check the engine against JPL DE421 references (see How it is computed) and fix any error we find, but the API is provided as is, without a warranty. Times are truncated to the minute.
- Fair use
- Keep your key secret and use it from your own server; do not put it in a public web page or app bundle. Do not resell the raw data as a competing API, and do not try to get around the limits. We may revoke a key that is abused or shared.
- Limits and changes
- Each plan has a per-minute limit and a monthly quota (calendar month, UTC). We may add endpoints and fields; we will not remove or rename a field in /v1 without notice by email to the account.
- Paid plans
- Billed monthly through Razorpay. You can cancel at any time from this page; the plan stays until the end of the period you paid for. Refunds follow our refund policy.
- Privacy
- We store your account, your keys' fingerprints (never the keys) and a count of calls per month. We do not log the query parameters of API calls.
- Contact
- info@livepanditji.com