Daily Panchang Widget
Build a daily almanac — tithi, nakshatra, Rahu Kaal, Choghadiya — for any website or app.
Perfect for temple websites, astrology blogs, and mobile apps.
What you'll build
- A clean card showing today's tithi, nakshatra, yoga, karana, and vara
- Sunrise, sunset, and moonrise times for any city
- Rahu Kaal and Choghadiya slots with good/bad labels
- Auto-updates daily; works for any location
Build this with AI
Copy the full prompt below, paste it into ChatGPT, Claude, Cursor, or Lovable, and get a working Next.js implementation in minutes. No coding skill required.
Step by step
01Call the all-in-one panchang endpoint
One endpoint returns all 22 panchang fields for a date and location. This is the simplest way to show a complete daily panchang in a single card.
curl "https://api.divyastroapi.com/v1/panchang/summary?date=2026-04-19&time=06%3A30&tz=%2B05%3A30&lat=28.61&lon=77.21" \
-H "Authorization: Bearer dv_live_..."{
"date": "2026-04-19",
"tithi": { "index": 2, "name": "Dwitiya", "paksha": "Shukla" },
"nakshatra": { "index": 8, "name": "Pushya", "pada": 2, "lord": "Saturn" },
"yoga": { "index": 12, "name": "Dhruva" },
"karana": { "index": 3, "name": "Gara" },
"vara": { "name": "Sunday", "lord": "Sun" },
"sunrise": "06:18:42",
"sunset": "18:51:20",
"rahu_kaal": { "start": "16:45", "end": "18:19" }
}02Fetch hora and choghadiya separately
For real-time widgets that show the current planetary hour or the current choghadiya slot, call these two endpoints. They are location-aware and split by day/night.
curl "https://api.divyastroapi.com/v1/panchang/hora?date=2026-04-19&time=14%3A20&tz=%2B05%3A30&lat=28.61&lon=77.21" \
-H "Authorization: Bearer dv_live_..."03Render in your UI
Call these endpoints from your backend (never from the browser — your API key must stay server-side). Cache the result per-day per-location for 24 hours. The panchang rarely changes mid-day so this is almost free.
APIs used in this recipe
/v1/panchang/summaryAll 22 panchang fields in one call.
/v1/panchang/horaCurrent planetary hour.
/v1/panchang/choghadiyaDay + night Choghadiya slots.
/v1/panchang/rahu-kaalInauspicious interval.
Next, try building
Daily Horoscope Widget
Personalized horoscope cards driven by real-time transit data, not generic sun-sign text.
Muhurta (Auspicious Time) Picker
Scan any date window and surface the highest-scoring muhurta for weddings, housewarmings, naming ceremonies, travel.
Ready to try? You get 500 free credits — no card needed.
Sign up for free