LifeAstroAPILifeAstroAPI

API Reference / Vedic Astrology / Matchmaking (Milan)

GET
10 credits

/v1/milan/mangal-dosha

Mangal Dosha with cancel rules.

What this tells you

Mangal (Kuja) Dosha occurs when Mars sits in certain houses of a birth chart. Classically it is read as a caution for married life. This endpoint checks one chart: it counts Mars's house from the lagna and from the Moon sign, and flags houses 1, 2, 4, 7, 8 and 12. Two cancellation rules are checked: Mars in its own sign (Aries or Scorpio) and Mars exalted in Capricorn. Other classical cancellations, such as both partners having the dosha, are not checked here — call the endpoint for each partner and compare. In practice most astrologers treat Mangal Dosha as a caution rather than a strict bar.

Request

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

example request
curl "https://api.lifeastroapi.com/v1/milan/mangal-dosha?birth.date=1990-01-15&birth.tz=Asia%2FKolkata&birth.lat=19.076&birth.lon=72.8777&birth.time=10%3A30" \
  -H "Authorization: Bearer YOUR_API_KEY"

Query parameters

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

NameRequiredExampleDescription
birth.dateyes1990-01-15Birth date (YYYY-MM-DD).
birth.tzyesAsia/KolkataBirth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
birth.latyes19.076Birth place latitude in decimal degrees.
birth.lonyes72.8777Birth place longitude in decimal degrees.
birth.timeno10:30Birth time (HH:MM, 24-hour, local). Defaults to 12:00.
ayanamsano—Ayanamsa (sidereal offset) to use. Defaults to lahiri.

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
{
  "has_dosha": true,
  "type": "mild",
  "houses": [
    -4
  ],
  "cancellation": {
    "cancelled": true,
    "reasons": [
      "Mars in own sign"
    ]
  }
}

Field reference

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

FieldTypeMeaning
has_doshaboolean
True when Mars is in house 1, 2, 4, 7, 8 or 12 counted from the lagna or from the Moon sign (whole signs). Stays true when a cancellation applies.
example: true
typestring
"purn" when Mars is in house 1, 7 or 8 from the lagna. "mild" for any other dosha placement (house 2, 4 or 12 from the lagna, or a dosha house from the Moon only). "none" when there is no dosha.
example: "mild"
housesinteger[] | null
Dosha houses that triggered. A positive number is the house from the lagna; a negative number is the house from the Moon sign (-4 = 4th from the Moon). null when has_dosha is false.
example: [8, -4]
cancellation.cancelledboolean
True when at least one cancellation reason applies.
example: true
cancellation.reasonsstring[]
"Mars in own sign" (Aries or Scorpio) and/or "Mars exalted in Capricorn". Empty array when none apply.
example: ["Mars in own sign"]

Usage tips

How to use it

  • Always show cancellations
    Never show "Mangal Dosha present" without the cancellation result — it causes needless worry. In the sample, has_dosha is true and cancellation.cancelled is also true.
  • Parameter pattern
    Takes one chart as birth.date, birth.time, birth.tz, birth.lat, birth.lon (birth.time defaults to 12:00). It does not read boy.* or girl.*. Call it once per partner.
  • Negative house numbers
    A negative entry in houses is a house counted from the Moon, not an error. Use its absolute value as the house number.

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": "missing or invalid API key",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

402 Payment Required

{
  "error": {
    "code": "trial_exhausted",
    "message": "your free trial credits are exhausted — pick a plan to continue",
    "top_up_url": "https://lifeastroapi.com/pricing",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

429 Too Many Requests

{
  "error": {
    "code": "rate_limited",
    "message": "rate limit exceeded; retry after 12 seconds",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

Try it

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