POST · VEDIC

Yogas

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

Returns a summary of all classical yogas found in the chart — total count and breakdown by category (Pancha Mahapurusha, Chandra, Surya, Dhana, Raja, Nabhasa, benefic yogas, and doshas).

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.

Response shape

FieldTypeDescription
summary.total_foundintegerYogas present in the chart.
summary.categories_with_yogasintegerCategories with at least one yoga.
by_categoryobjectCount per category (pancha_mahapurusha, chandra_yoga, surya_yoga, dhana_yoga, special_raja, benefic_yoga, nabhasa_yoga, dosha, …).

Detection follows strict classical rules: inclusive house counting, full Vedic special aspects, mutually exclusive Moon/Sun yogas (Durudhara subsumes Sunapha/Anapha; Ubhayachari subsumes Veshi/Voshi), and gender + day/night conditions for gender-specific yogas such as Mahabhagya.

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