intermediate
~15 minutes with AI 4 APIs

Marriage Compatibility (Ashtakoota)

Classical 36-point Guna Milan scoring with Mangal, Nadi, and Shani Dosha checks.

Powers matrimonial sites and compatibility quizzes.

What you'll build

  • Input form for both partners' birth details
  • 36-point Ashtakoota total with per-Koota breakdown (8 factors)
  • Mangal Dosha check with cancellation rules
  • Nadi Dosha with classical exceptions
  • Human-readable verdict: excellent / good / acceptable / reconsider

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.

📋 71 lines🎯 Structured context🔗 With API endpoints

Step by step

01Collect both birth details

Ashtakoota needs date/time/lat/lon for both boy and girl. All 8 Kootas are computed from Moon nakshatra + Rashi.

02Call the Ashtakoota endpoint

One endpoint returns the total and the breakdown (Varna, Vashya, Tara, Yoni, Graha Maitri, Gana, Bhakoot, Nadi).

GET /v1/milan/ashtakoota
curl "https://api.divyastroapi.com/v1/milan/ashtakoota?boy_date=1990-01-15&boy_time=14%3A30&boy_tz=%2B05%3A30&boy_lat=28.61&boy_lon=77.21&girl_date=1992-07-20&girl_time=03%3A15&girl_tz=%2B05%3A30&girl_lat=19.08&girl_lon=72.88" \
  -H "Authorization: Bearer dv_live_..."

03Run dosha checks in parallel

Mangal, Nadi, and Shani Dosha are separate endpoints. Run them in parallel for the lowest latency.

04Summarize for non-astrologers

Translate the total + kootas into a simple verdict your user understands: "28.5 / 36 — Excellent match". Show doshas as warnings with cancellation context.

APIs used in this recipe

Next, try building

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

Sign up for free