TutorialApril 20268 min read

Panchang API: Complete Hindu Calendar Data in Your App

The panchang is the Hindu almanac — the five limbs (pancha + anga) of a Vedic day. Building a panchang widget, muhurta finder, or Hindu calendar feature? One API call gets you everything.

The API call

Use today's date in doband the user's location in lat/lon. Panchang is location-specific because sunrise times vary.

const params = new URLSearchParams({
  api_key: 'vai_your_key',
  dob: '23/04/2026', tob: '12:00',  // today's date at noon for daily panchang
  lat: '19.0760', lon: '72.8777',    // Mumbai
  tz: '5.5'
})

const panchang = await fetch(
  `https://vedintelastroapi.com/api/v1/panchang/panchang?${params}`
).then(r => r.json())

Full response

{
  "tithi": {
    "name": "Tritiya",
    "number": 3,
    "paksha": "Shukla",          // waxing or waning phase
    "end_time": "14:32"
  },
  "nakshatra": {
    "name": "Rohini",
    "lord": "Moon",
    "pada": 2,
    "end_time": "18:45"
  },
  "yoga": { "name": "Siddha", "end_time": "20:12" },
  "karana": { "name": "Bava", "end_time": "14:32" },
  "vara": "Thursday",
  "sunrise": "06:18",
  "sunset": "18:54",
  "moonrise": "08:42",
  "moonset": "21:17",
  "rahu_kaal": { "start": "13:30", "end": "15:00" },
  "gulika_kaal": { "start": "06:00", "end": "07:30" },
  "abhijit_muhurta": { "start": "11:54", "end": "12:48" },
  "choghadiya": [
    { "name": "Amrit",  "start": "06:18", "end": "07:54", "type": "auspicious" },
    { "name": "Kaal",   "start": "07:54", "end": "09:30", "type": "inauspicious" },
    { "name": "Shubh",  "start": "09:30", "end": "11:06", "type": "auspicious" },
    ...
  ]
}

Field reference

tithi
Lunar day (1-30). Changes mid-day — end_time tells you when.
nakshatra
Moon's position in 27-nakshatra system. Includes pada (quarter).
yoga
27-yoga cycle. Specific yogas are considered auspicious for activities.
karana
Half-tithi. 11 karanas cycle every half lunar day.
vara
Day of the week in Vedic system.
rahu_kaal
Inauspicious period — avoid starting new activities.
abhijit_muhurta
Most auspicious time of day. Mid-day window.
choghadiya
Day divided into 8 periods, each with auspiciousness rating.
sunrise / sunset
Computed via Swiss Ephemeris swe_rise_trans() — accurate to the minute.

Monthly panchang

Use /panchang/monthly-panchang to get all 30–31 days of a month in one call. Perfect for building a calendar view. Add a month and year parameter.

Muhurta endpoints

For auspicious timing features:

Panchang is available on the free plan. 500 calls/month, no card.

Get free API key →