LifeAstroAPILifeAstroAPI

Panchang API

A REST API for the daily Hindu panchang: tithi, nakshatra, yoga, karana and vara with exact end times, sunrise, moonrise, Rahu Kaal, Choghadiya, Hora, Abhijit and Brahma Muhurat, for any place and date.

Why developers choose it

  • Every element is computed for local sunrise at the given latitude and longitude, with DST-correct IANA timezones.
  • One call returns a whole month as a printable calendar sheet, including kshaya tithis and end times past midnight.
  • Purnimanta and amanta month naming, adhik maas detection, Vikram and Shaka samvat.

What you can build

Daily panchang screens and widgetsPrintable monthly Hindu calendarsMuhurat and timing alertsTemple and community apps abroad

Endpoints (34)

EndpointWhat it returnsCredits
GET /v1/panchang/tithiLunar day (tithi) at moment with transition times.10
GET /v1/panchang/nakshatraNakshatra + pada + lord at moment.10
GET /v1/panchang/yogaYoga with transition JD.10
GET /v1/panchang/karanaKarana (half-tithi).10
GET /v1/panchang/varaVedic weekday (vara) with lord.10
GET /v1/panchang/sunrise-sunsetSunrise and sunset JD for location.10
GET /v1/panchang/moonrise-moonsetMoonrise and moonset JD.10
GET /v1/panchang/rahu-kaalRahu Kaal interval for the day.10
GET /v1/panchang/yamagandaYamaganda interval.10
GET /v1/panchang/gulikaGulika interval.10
GET /v1/panchang/abhijitAbhijit muhurta window.10
GET /v1/panchang/brahma-muhuratBrahma Muhurat window.10
GET /v1/panchang/pradosh-kaalPradosh Kaal interval.10
GET /v1/panchang/horaPlanetary hora ruling at moment.10
GET /v1/panchang/choghadiyaDay + night Choghadiya schedule.10
GET /v1/panchang/durmuhurtaDurmuhurta intervals.10
GET /v1/panchang/varjyamVarjyam window.10
GET /v1/panchang/amrit-kalamAmrit Kalam window.10
GET /v1/panchang/siddha-yogaSiddha Yoga check.10
GET /v1/panchang/panchakaPanchaka type (5-fold inauspicious).10
GET /v1/panchang/hindu-monthAmanta/Purnimanta Hindu month.10
GET /v1/panchang/sankrantiNext solar sankranti (sign ingress).10
GET /v1/panchang/summaryFive panchang elements at sunrise plus sunrise and sunset, in one call.20
GET /v1/panchang/basicAll 5 panchang elements + sunrise/sunset/moonrise/moonset + transition end-times — single call replaces 7 atomic calls.20
GET /v1/panchang/advancedComplete daily panchang: all 5 elements + muhurta windows (Rahu Kaal/Gulika/Abhijit/Brahma Muhurat) + Choghadiya + Hindu month + Samvat + Disha Shool + Nak Shool + Moon Nivas + Panchang Yogas + same-day transitions.30
GET /v1/panchang/lagna-tableAll 12 lagna (ascendant sign) rise-times for the day — shows when each zodiac sign rises on the eastern horizon.20
GET /v1/panchang/monthlyMonth panchang — one row per day (tithi, nakshatra, yoga, vara, sunrise, sunset). Add include=sheet for a complete printable Hindu calendar page: tithi/nakshatra/moon-sign end-times in "27:07+" notation, kshaya days, moonrise/moonset, Hindu month, Vikram/Shaka samvat, moon phase and every festival of each day. Validated against 14 printed panchang calendars.30
GET /v1/panchang/hora-dinmanFixed equal-length hora (dinman method) — 12 day + 12 night horas of exactly 60 minutes each, with planetary lord.10
GET /v1/panchang/nakshatra-predictionDaily prediction based on Tara Bala — computed from birth nakshatra vs today's Moon nakshatra, with health/work/relationships/finance/travel guidance.10
GET /v1/calendar/monthComplete Hindu calendar for a month — all tithis, nakshatras, yogas, special days.10
GET /v1/calendar/adhik-maasAdhik Maas (leap month) check and next occurrence.20
GET /v1/calendar/samvatsaraJovian year name (Samvatsara) for a given date.10
GET /v1/calendar/rituVedic season (Ritu) for a given date.10
GET /v1/calendar/solsticesEquinoxes and solstices of a year — exact moment, Uttarayana/Dakshinayana, and sunrise/sunset/day length at your location.10

Learn more

Frequently asked questions

Does the Panchang API work outside India?

Yes. Sunrise, tithi at sunrise and every muhurta window are computed for the latitude, longitude and timezone you pass, so London, Toronto or Sydney get their own correct panchang.

Is there a free tier?

Yes. Every account gets 1,500 free credits a month with no card required. Paid plans start at ₹999 / $29 a month, and pay-as-you-go is available.

Can AI assistants such as Claude or Cursor call it directly?

Yes. The open-source LifeAstro MCP server exposes every endpoint as a tool for Claude Desktop, Cursor, Codex and other MCP clients that run local servers, using your existing API key.

Which ephemeris and ayanamsa does it use?

Planet positions come from the Swiss Ephemeris. Vedic calculations use the Lahiri (Chitrapaksha) ayanamsa by default; other ayanamsas can be selected per request.

Try the Panchang API

Sign up for a free key and make your first call in a minute.

curl -H "Authorization: Bearer $LIFEASTRO_API_KEY" \
  "https://api.lifeastroapi.com/v1/panchang/advanced?date=2027-01-15&time=06:00&tz=Asia/Kolkata&lat=28.6139&lon=77.209"