Use CasePanchangTithiNakshatraMuhurta

Panchang API for Websites & Apps
10 Endpoints. Every Vedic Time Signal.

Get tithi, nakshatra, yoga, karana, choghadiya, hora, moon phases, sunrise/sunset, and festivals — all from a single REST call. Swiss Ephemeris computes locally, zero third-party dependency.

Get Free API Key →API Documentation

Panchang Endpoints

GET /panchang/panchang
Complete daily Panchang — tithi, nakshatra, yoga, karana, vaara, sunrise/sunset, moon phase, auspicious times
Params: date, lat, lon, tz
GET /panchang/choghadiya-muhurta
Day and night Choghadiya slots with quality (Amrit, Shubh, Labh, Char, Rog, Kaal, Udveg)
Params: date, lat, lon, tz
GET /panchang/hora-muhurta
Planetary hora sequence for the day — each hour ruled by a planet
Params: date, lat, lon, tz
GET /panchang/monthly-panchang
Full month Panchang at once — tithi and nakshatra for every day
Params: month, year, lat, lon, tz
GET /panchang/moon-calendar
Monthly lunar calendar with tithi transitions and moon sign changes
Params: month, year, lat, lon, tz
GET /panchang/moon-phase
Current moon phase, percent illumination, waxing/waning, next new/full moon
Params: date, lat, lon, tz
GET /panchang/festivals
Hindu festival and auspicious day list for a given year and region
Params: year, region
GET /panchang/sunrise
Precise sunrise time and its nakshatra, tithi at sunrise
Params: date, lat, lon, tz
GET /panchang/sunset
Precise sunset time and planetary hour at sunset
Params: date, lat, lon, tz
GET /panchang/transit
Planetary transit times — when planets change signs
Params: date, planet

Integration Example

panchang.js
// Get today's complete Panchang
const panchang = await fetch(
  'https://vedintelastroapi.com/api/v1/panchang/panchang' +
  '?api_key=vai_YOUR_KEY' +
  '&date=18/04/2026' +   // DD/MM/YYYY
  '&lat=28.6139' +        // New Delhi
  '&lon=77.2090' +
  '&tz=5.5'              // IST
).then(r => r.json())

// Response includes:
// panchang.response.tithi       → "Ekadashi"
// panchang.response.nakshatra   → "Revati"
// panchang.response.yoga        → "Siddhi"
// panchang.response.karana      → "Balava"
// panchang.response.vaara       → "Saturday"
// panchang.response.sunrise     → "06:01 AM"
// panchang.response.sunset      → "06:51 PM"

// Get today's Choghadiya slots
const choghadiya = await fetch(
  'https://vedintelastroapi.com/api/v1/panchang/choghadiya-muhurta' +
  '?api_key=vai_YOUR_KEY&date=18/04/2026&lat=28.6139&lon=77.2090&tz=5.5'
).then(r => r.json())
// Returns day and night Choghadiya with start/end times and quality

Panchang API — FAQs

What is a Panchang API used for?
A Panchang API is used to add Vedic calendar functionality to astrology apps, temple websites, matrimonial platforms, and devotional apps. It returns the five elements of the Vedic day — tithi (lunar day), nakshatra (lunar mansion), yoga (luni-solar combination), karana (half-tithi), and vaara (day of week) — along with muhurta recommendations, sunrise/sunset, and festival data.
How is tithi calculated in the Panchang API?
Tithi is calculated from the angular difference between the Sun and Moon using the Swiss Ephemeris, which provides arc-second precision. Each tithi spans 12 degrees of the Moon-Sun arc. The API returns the current tithi, its deity, nature (Nanda, Bhadra, Jaya, Rikta, Purna), and remaining percentage at the requested date and time.
Does the Panchang API support all time zones?
Yes. Pass the tz parameter as a decimal offset from UTC. For IST use tz=5.5, for US Eastern use tz=-5.0 (or -4.0 during daylight saving). The API computes sunrise/sunset and all muhurta times for the exact location and timezone you specify.
Can I get a whole month of Panchang data in one call?
Yes. The /panchang/monthly-panchang endpoint returns tithi and nakshatra for every day of a given month in a single API call. This is ideal for building monthly Hindu calendar widgets or scheduling pages.
What is the Choghadiya API used for?
Choghadiya (meaning "four ghadi") is a traditional Vedic time classification system that divides the day and night into 8 slots each, ruled by different planets. Each slot is labelled Amrit (most auspicious), Shubh, Labh, Char, Rog, Kaal, or Udveg. Apps use Choghadiya to help users choose auspicious times for starting journeys, business deals, or important events.
Related Use Cases
Kundli APIHoroscope APIDasha APIMarriage Matching APIFree Vedic API Guide

Start for free. Ship today.

500 free API calls. No credit card. All 10 Panchang endpoints included.

Get Your Free API Key →