LifeAstroAPILifeAstroAPI

API Reference / Vedic Astrology / Muhurta

GET
30 credits

/v1/muhurta/vivah

Wedding muhurta composite score.

Try it in the Playground

What this tells you

Scores one proposed wedding date and time. It checks 12 factors — tithi, weekday, Moon nakshatra, Sun sign (the Sun in Sagittarius, Capricorn or Pisces scores 0 and adds a warning), Rahu Kaal, Yamaganda, Durmuhurta, Panchaka, a Chandra Bala proxy, Jupiter and Venus being set, adhika masa and Bhadra (Vishti karana) — and turns the weighted total into a 0–100 score with a grade. Use this to check one candidate time; use /v1/muhurta/best-time to scan a date range. Three of the factors are classical prohibitions: GuruShukraAsta, AdhikaMasa and Bhadra. When one of them applies, `prohibited_by` lists it, grade is inauspicious and is_acceptable is false; score stays the weighted total.

Params: date, time, tz, lat, lon (plus optional ayanamsa). No birth details are used. ChandraBala here is a paksha proxy: full points in Shukla paksha, half in Krishna paksha. For chart-based checks, see /v1/muhurta/chandra-bala and /v1/muhurta/tara-bala.

Request

All requests require an Authorization header with your dv_live_* API key.

example request
curl "https://api.lifeastroapi.com/v1/muhurta/vivah?date=2027-01-15&tz=Asia%2FKolkata&lat=28.6139&lon=77.209&time=10%3A00" \
  -H "Authorization: Bearer YOUR_API_KEY"

Query parameters

Checked against the API: a parameter is marked required when the request fails without it.

NameRequiredExampleDescription
dateyes2027-01-15Date (YYYY-MM-DD).
tzyesAsia/KolkataTimezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
latyes28.6139Latitude in decimal degrees.
lonyes77.209Longitude in decimal degrees.
timeno10:00Local time (HH:MM, 24-hour). Defaults to 12:00.
ayanamsano—Ayanamsa (sidereal offset) to use. Defaults to lahiri.
langno—Language of names, labels and readings in the response: `en` (default), `hi`, `mr`, `gu`, `bn`, `te`, `ta`, `kn`, `ml`, `pa`. `locale` is accepted as an alias.

Response (200 OK)

The real response to the example request above, generated from the API itself. Long arrays are trimmed to their first two items. Field names are stable across versions.

200 response
{
  "date": "2027-01-15",
  "time": "10:00",
  "lat": 28.6139,
  "lon": 77.209,
  "ayanamsa": "lahiri",
  "result": {
    "score": 95,
    "grade": "excellent",
    "factors": [
      {
        "name": "Tithi",
        "value": "Saptami",
        "weight": 12,
        "score": 12,
        "ok": true
      },
      {
        "name": "Vara",
        "value": "Friday",
        "weight": 10,
        "score": 10,
        "ok": true
      }
    ],
    "warnings": [
      "Proposed time falls in Durmuhurta — a less favourable time"
    ],
    "is_acceptable": true,
    "prohibited_by": []
  },
  "source": "Muhurta Chintamani, Vivaha-prakarana v. 13 (solar months) and v. 55 (nakshatras, tithis, weekdays), cross-checked with B.V. Raman, Muhurtha pp. 27, 29, 101-102; Hari Shayana as in Samskara-prakarana v. 24, with v. 26 and Raman p. 101; Bhadra, Vyatipata, Vaidhriti and adhika ma…"
}

Field reference

Every field in the response, with its type, a real example, and what it means.

FieldTypeMeaning
date, timestring
Local date and time that were scored, echoed from `date` and `time` (time defaults to 12:00).
example: "2027-01-15", "10:00"
lat, lonnumber
Location, used for sunrise, sunset and the time windows.
example: 28.6139, 77.209
ayanamsastring
Ayanamsa used for the Moon nakshatra and Sun sign.
example: "lahiri"
result.scoreinteger (0–100)
Points earned × 100 / total weight, rounded down.
example: 86
result.gradestring
excellent (90+), good (80–89), acceptable (60–79), inauspicious (below 60, or whenever a classical prohibition applies).
example: "good"
result.is_acceptableboolean
True when score is 60 or more and no classical prohibition applies.
example: true
result.prohibited_bystring[]
IDs of the classical prohibitions that apply at this moment (GuruShukraAsta, AdhikaMasa, Bhadra). Empty when none applies. When it is not empty, grade is inauspicious and is_acceptable is false; score stays the weighted total.
example: []
result.factors[]array
The 12 factors checked: Tithi, Vara, Nakshatra, SunRashi, RahuKaal, Yamaganda, Durmuhurta, Panchaka, ChandraBala, GuruShukraAsta (Jupiter or Venus set), AdhikaMasa and Bhadra (Vishti karana).
example: […]
result.factors[].namestring
Factor name.
example: "Tithi"
result.factors[].valuestring
Value at the scored moment (tithi name, weekday, nakshatra, Sun sign, or "Shukla paksha" / "Krishna paksha" for ChandraBala). Left out for RahuKaal, Yamaganda, Durmuhurta, Panchaka, AdhikaMasa and Bhadra. GuruShukraAsta names the planet that is set (Jupiter, Venus or both) and is left out when neither is.
example: "Saptami"
result.factors[].weightinteger
Maximum points for the factor: Tithi 12, Vara 10, Nakshatra 15, SunRashi 7, RahuKaal 8, Yamaganda 5, Durmuhurta 5, Panchaka 7, ChandraBala 10, GuruShukraAsta 8, AdhikaMasa 7, Bhadra 8 (102 in total).
example: 12
result.factors[].scoreinteger
Points earned, from 0 to weight. A neutral tithi or nakshatra earns partial points.
example: 12
result.factors[].okboolean
True when the factor is auspicious. A factor can be false and still earn partial points.
example: true
result.warningsstring[] | null
Problems found, as plain sentences. null when there are none.
example: ["Vara Sunday is inauspicious for vivah", …]

Usage tips

How to use it

  • Show factor bars
    One bar per factor, filled to score/weight. Users like to see exactly why a time is good or bad.
  • Check prohibited_by first
    When `prohibited_by` is not empty the moment is not acceptable, whatever the score. Show the reason (Jupiter or Venus set, adhika masa, Bhadra) instead of the score. Other warnings (for example Kharmaas or Rahu Kaal) are worth showing prominently even when the score looks fine.
  • Handle null warnings
    `warnings` is null, not an empty array, when nothing is wrong. Treat both the same.

Errors

Every error follows the same envelope. Use the error.code field (not the message) for conditional logic in your integration.

401 Unauthorized

{
  "error": {
    "code": "unauthorized",
    "message": "unknown or revoked API key",
    "request_id": "52a520f261d3db37"
  }
}

402 Payment Required

{
  "error": {
    "code": "daily_cap_exceeded",
    "message": "free-plan daily limit reached — try again tomorrow or upgrade to a paid plan",
    "request_id": "52a520f261d3db37"
  }
}

429 Too Many Requests

{
  "error": {
    "code": "rate_limited",
    "message": "rate limit exceeded — retry after 12 seconds",
    "request_id": "52a520f261d3db37"
  }
}

Try it

Get a dv_live_* key from your dashboard and paste into the cURL snippet above. New accounts get 7,500 welcome credits plus 1,500 free credits a month. Sign up.