Skip to main content

Calculate yoga combinations

Detect all classical Vedic yogas in a natal chart — Pancha Mahapurusha Yogas, Raja Yogas, Gajakesari, Neecha Bhanga Raja Yoga, Budhaditya, Chandra Mangala, and more. Each detected yoga returns formation conditions, classical results, modern summary, and keywords.

Endpoint

POST /v1/astro/yoga

Request parameters

FieldTypeRequiredDescription
locationstring | nullNoCity name to resolve to lat/lon/tz automatically. Example: 'Mumbai' or 'New Delhi, India'. If provided, latitude, longitude and timezone are not required.
namestringNoPerson name associated with the birth record
datestringYesBirth date in YYYY-MM-DD format
timestring | nullNoBirth time in HH:MM 24-hour format. If omitted, sunrise chart is used as fallback.
latitudenumber | nullNoLatitude. Required if location not provided.
longitudenumber | nullNoLongitude. Required if location not provided.
timezonestring | nullNoIANA timezone. Required if location not provided.
ayanamsastringNoSidereal ayanamsa mode used in calculations

Example request

curl -X POST "https://api.asterwise.com/v1/astro/yoga" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"1985-11-12","time":"06:45","latitude":19.076,"longitude":72.8777,"timezone":"Asia/Kolkata"}'

Example response

{
"success": true,
"message": "success",
"data": {
"yogas": [
{
"yoga_name": "Neech Bhanga Raja Yoga (Sun)",
"category": "raja_yogas",
"formation": "",
"modern_summary": "Neecha Bhanga Raja Yoga is among the most powerful combinations in Vedic astrology precisely because it transforms weakn…",
"keywords": [
"weakness transformed to strength",
"overcoming massive hurdles",
"... and 2 more items"
]
},
{
"yoga_name": "Neech Bhanga Raja Yoga (Jupiter)",
"category": "raja_yogas",
"formation": "",
"modern_summary": "Neecha Bhanga Raja Yoga is among the most powerful combinations in Vedic astrology precisely because it transforms weakn…",
"keywords": [
"weakness transformed to strength",
"overcoming massive hurdles",
"... and 2 more items"
]
},
"... and 13 more items"
],
"birth_time_provided": true
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.yogasarray[object]
data.yogas[].yoga_namestringDetected yoga name
data.yogas[].categorystringYoga category bucket
data.yogas[].formationstringFormation condition
data.yogas[].modern_summarystringModern interpretation summary
data.yogas[].keywordsarray[string]Interpretation keywords
data.birth_time_providedbooleanWhether a precise birth time was provided. False when birth time was not supplied or treated as unknown — calculations using this field will have lagna-dependent accuracy limits.

Errors

CodeDescriptionReference
authentication_failedMissing or invalid API key.authentication_failed
ephemeris_unavailableUpstream ephemeris service error.ephemeris_unavailable
insufficient_tierAPI key tier does not include this endpoint.insufficient_tier
internal_errorUnexpected server error.internal_error
ip_rate_limit_exceededToo many requests in a short window.ip_rate_limit_exceeded
payload_too_largeRequest body exceeds the size limit.payload_too_large
resource_not_foundReferenced resource was not found.resource_not_found
validation_errorRequest body failed schema validation.validation_error