Skip to main content

Ayanamsha Values

Returns ayanamsha values for all four supported systems (Lahiri, Raman, KP, Tropical) for a given date. Each system returns the value in decimal degrees and DMS (degrees/minutes/seconds) format. Pass ?date=YYYY-MM-DD for a specific date. Omit ?date to get today's values. Lahiri is the Indian government standard and default for Jyotish.

Endpoint

GET /v1/astro/ayanamsha

Request parameters

FieldTypeRequiredDescription
datestring (date) | nullNo

Example request

curl -X GET "https://api.asterwise.com/v1/astro/ayanamsha" \
-H "Authorization: Bearer YOUR_API_KEY"

Example response

{
"success": true,
"message": "success",
"data": {
"date": "2026-05-28",
"ayanamsha": {
"lahiri": {
"value_decimal": 24.225946,
"degrees": 24,
"minutes": 13,
"seconds": 33.4,
"dms": "24° 13' 33.4\"",
"description": "Chitrapaksha ayanamsa. Indian government standard. Used by the majority of Jyotish practitioners."
},
"raman": {
"value_decimal": 22.779644,
"degrees": 22,
"minutes": 46,
"seconds": 46.72,
"dms": "22° 46' 46.72\"",
"description": "B.V. Raman ayanamsa. Differs from Lahiri by approximately 0°22'. Common in South Indian traditions."
},
"kp": {
"value_decimal": 24.129093,
"degrees": 24,
"minutes": 7,
"seconds": 44.74,
"dms": "24° 7' 44.74\"",
"description": "Krishnamurti Paddhati ayanamsa. Used for KP system calculations. Differs from Lahiri by approximately 6'."
},
"tropical": {
"value_decimal": 0.0,
"degrees": 0,
"minutes": 0,
"seconds": 0.0,
"dms": "0° 0' 0.0\"",
"description": "Zero ayanamsa offset. Returns Western tropical zodiac positions. Not recommended for Jyotish interpretation."
}
},
"note": "All values computed using Swiss Ephemeris DE431. Lahiri is recommended for Jyotish calculations."
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.datestringDate in ISO YYYY-MM-DD format
data.ayanamshaobjectAyanamsha values keyed by system name (lahiri, raman, kp, tropical)
data.notestring

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