POST · VEDIC

Manglik Analysis

Endpoint POST https://starsapi.com/api/v3/vedic/yogas-doshas/manglik-analysis

Returns the full Manglik (Mangal Dosha) analysis — Mars position, dosha check from all three references (Ascendant, Moon, Venus), double-Manglik check, effects, and a plain-language summary. The verdict follows the Ascendant; Moon and Venus placements are reported as facts with secondary-affliction notes.

Authentication

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

FieldTypeRequiredDescription
namestringNoEchoed in the response.
genderstringNomale or female — used by gender-specific yoga rules.
yearintegerYesBirth year.
monthintegerYesBirth month, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 24-hour.
minuteintegerYesMinute.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone.
ayanamsastringNoDefault lahiri.
node_typestringNomean (default) or true.
include_second_housebooleanNoInclude the 2nd house as a dosha house (South Indian tradition). Default false.

Response shape

FieldTypeDescription
mars_positionobjecthouse, sign, degree, longitude, retrograde.
has_manglikbooleanAscendant-based verdict.
severitystringnone / mild / moderate / severe — graded by house placement and chart-specific factors including Mars’s functional role for the lagna and classical aggravating combinations.
minor_afflictionbooleanAscendant clear but Moon/Venus reference afflicted.
is_double_manglik / double_manglik_reasonmixedMars joined by Rahu, Ketu, or Saturn in the dosha house.
from_lagna / from_moon / from_venusobjectPer reference: in_dosha_house (placement fact), house, note. Moon/Venus notes mark secondary afflictions explicitly.
effectsobjectHouse-specific effects when Manglik.
summarystringPlain-language verdict.
tradition_usedstringDosha house set used (standard or extended).

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEBad calendar date.
400INVALID_TIMEHour/minute/second out of range.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELat/lon out of range.
400INVALID_PARAMBad ayanamsa or node_type.
405METHOD_NOT_ALLOWEDNon-POST request.

See also