Daily Horoscope Widget
Personalized horoscope cards driven by real-time transit data, not generic sun-sign text.
Ship a fresh horoscope for every user, every day.
What you'll build
- User's natal chart (one-time)
- Current transit positions relative to natal chart
- Current Mahadasha + Antardasha (from /v1/dasha/vimshottari/current)
- A 3-sentence narrative generated locally from the data
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
01Compute the natal chart once
On first signup, compute and store the user's D1 planets + ascendant. This never changes.
02Fetch current dasha periods
Every day, fetch the user's current Mahadasha / Antardasha / Pratyantar dasha — these drive the dominant themes.
curl "https://api.divyastroapi.com/v1/dasha/vimshottari/current?date=2026-04-19&time=14%3A30&tz=%2B05%3A30&lat=28.61&lon=77.21" \
-H "Authorization: Bearer dv_live_..."03Fetch transits
Current sidereal positions of all planets. Compare to natal to find the 2-3 most influential transits.
04Generate the narrative
Combine the dasha lords, transit highlights, and current tithi/nakshatra into a 3-sentence daily reading. Run this locally or through an LLM of your choice.
APIs used in this recipe
/v1/chart/planetsNatal chart (cached forever per user).
/v1/dasha/vimshottari/currentCurrent dasha periods.
/v1/transit/positionsCurrent transit positions.
Next, try building
Kundli (Birth Chart) App
Complete Vedic birth chart with divisional charts, Ashtakavarga, and Vimshottari Dasha.
Saturn / Sade Sati Transit Alerts
Notify users when Saturn, Rahu, or Ketu changes sign — the moments that matter.
Ready to try? You get 500 free credits — no card needed.
Sign up for free