intermediate
~30 minutes with AI 6 APIs

Kundli (Birth Chart) App

Complete Vedic birth chart with divisional charts, Ashtakavarga, and Vimshottari Dasha.

The full-featured astrology experience — rendered from just 6 API calls.

What you'll build

  • D1 (Rasi) chart showing all 9 planets with sign, nakshatra, pada, and house
  • Navamsa (D9) and any other divisional chart (D2 through D60)
  • Ashtakavarga table (Sarva + 8 Bhinna)
  • Complete 5-level Vimshottari Dasha drill-down
  • Avakhada chakra (Varna, Vashya, Yoni, Gana, Nadi)

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.

📋 79 lines🎯 Structured context🔗 With API endpoints

Step by step

01Collect birth details

Ask the user for date, time, timezone, latitude, and longitude. Any good kundli app needs all five — the chart changes by minutes.

02Fetch the D1 (Rasi) chart and ascendant

The D1 chart is the foundation. Call planets + ascendant in parallel — each is 1 credit.

GET /v1/chart/planets
curl "https://api.divyastroapi.com/v1/chart/planets?date=1990-01-15&time=14%3A30&tz=%2B05%3A30&lat=28.61&lon=77.21" \
  -H "Authorization: Bearer dv_live_..."

03Fetch divisional charts

Request Navamsa (D9) and other vargas the user asks for. Each varga is a separate call so the user pays only for what they view.

GET /v1/chart/divisional/D9
curl "https://api.divyastroapi.com/v1/chart/divisional/D9?date=1990-01-15&time=14%3A30&tz=%2B05%3A30&lat=28.61&lon=77.21" \
  -H "Authorization: Bearer dv_live_..."

04Fetch Ashtakavarga and Dasha

Ashtakavarga (2 credits) returns the Sarva plus all 8 Bhinna charts. Vimshottari (2 credits) returns the full dasha tree.

05Cache aggressively

Birth data does not change. Cache the full computed kundli per user forever — just invalidate when they correct their birth time.

APIs used in this recipe

Next, try building

Ready to try? You get 500 free credits — no card needed.

Sign up for free