LifeAstroAPILifeAstroAPI
intermediate
~15 minutes with AI 3 APIs

Muhurta (Auspicious Time) Picker

Scan any date window and surface the highest-scoring muhurta for weddings, housewarmings, naming ceremonies, travel.

Traditional electional astrology, delivered as a modern date picker.

What you'll build

  • Event-type selector (vivah / graha pravesh / naamkaran / yatra / vyapar)
  • Date range picker and location input
  • Ranked list of auspicious windows with muhurta score
  • Factor breakdown for each window: tithi, nakshatra, chandra bala, tarabala

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.

65 lines Structured context With API endpoints

Step by step

01Ask for the event type and window

Let the user pick the event (vivah, graha pravesh, etc.), a date range (e.g. next 90 days), and a location.

02Call /v1/muhurta/best-time

The scanner walks every hora-step in the window and returns the top-scored windows with all the contributing factors.

GET /v1/muhurta/best-time
curl "https://api.lifeastroapi.com/v1/muhurta/best-time?purpose=vivah&start_date=2026-11-01&end_date=2026-11-30&lat=28.61&lon=77.21&tz=Asia%2FKolkata" \
  -H "Authorization: Bearer YOUR_API_KEY"

03Show top candidates with explanations

Render the top 5 windows as cards. Each card shows the start/end time, the score out of 100, and a breakdown of the contributing factors. Users love seeing "Tithi: Dwadashi (90), Nakshatra: Rohini (95)".

APIs used in this recipe

Next, try building

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

Sign up for free