LifeAstroAPILifeAstroAPI

← Docs home

Build a daily panchang service

Use /v1/panchang/basic or /advanced for a full day, or call individual endpoints à la carte.

For a daily panchang screen, /v1/panchang/advanced returns the whole day in one call (30 credits): the five elements with their end times, the element that follows, sunrise and moonrise, and every muhurta window (Rahu Kaal, Abhijit, Choghadiya, Hora …). /v1/panchang/basic (20 credits) gives the elements, end times and rise/set times without the muhurta windows.

Sample response (trimmed)

New Delhi, 15 January 2027:

{
  "date": "2027-01-15",
  "tz": "Asia/Kolkata",
  "sunrise_local": "2027-01-15 07:14:47",
  "sunset_local": "2027-01-15 17:46:15",
  "moonrise_local": "2027-01-15 11:16:49",
  "tithi": {
    "index": 6,
    "name": "Saptami",
    "paksha": "Shukla",
    "end_local": "2027-01-15 14:13:59"
  },
  "next_tithi": {
    "name": "Ashtami",
    "start_local": "2027-01-15 14:13:59",
    "end_local": "2027-01-16 13:43:30"
  },
  "nakshatra": {
    "index": 26,
    "name": "Revati",
    "pada": 2,
    "end_local": "2027-01-15 23:50:58"
  },
  "yoga": {
    "name": "Shiva",
    "end_local": "2027-01-15 16:17:40"
  },
  "muhurta": {
    "rahu_kaal": {
      "start_local": "2027-01-15 11:11:35",
      "end_local": "2027-01-15 12:30:31"
    },
    "abhijit": {
      "start_local": "2027-01-15 12:09:28",
      "end_local": "2027-01-15 12:51:34"
    }
  }
}

À la carte

For lightweight apps that only need specific fields, call the individual endpoints instead — each costs 10 credits but the response is much smaller:

  • /v1/panchang/tithi
  • /v1/panchang/nakshatra
  • /v1/panchang/hora
  • /v1/panchang/choghadiya