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.