Ascendant API for Vedic and Western birth charts
Calculate the Vedic Lagna or Western rising sign in your app. Compare REST endpoints, birth inputs and JSON responses for the same birth details.
Use the Vedic endpoint for a Kundli or the Western endpoint for a tropical natal chart. The ascendant is the zodiac degree rising on the eastern horizon at the birth place and time. Each example below uses 15 January 1990 at 10:30 a.m. in Mumbai.
Send the birth details
Pass the birth date as date (YYYY-MM-DD), local birth time as time (HH:MM), the birth place's IANA time zone as tz, and coordinates as lat and lon. Supply the recorded birth time in your app because the API defaults to local noon when you omit it. Use place search to look up coordinates and the time zone.
Replace YOUR_API_KEY with your key when running cURL. In a web or mobile integration, make these requests from your backend and keep the key there.
Vedic ascendant (Lagna)
Read ascendant.sidereal_lon, ascendant.sign_index, ascendant.nakshatra_idx and ascendant.pada for a Kundli. Lahiri is the default ayanamsa. The Vedic response uses a zero-based sign index, from Aries (0) to Pisces (11).
curl "https://api.lifeastroapi.com/v1/chart/ascendant?date=1990-01-15&tz=Asia%2FKolkata&lat=19.076&lon=72.8777&time=10%3A30" \
-H "Authorization: Bearer YOUR_API_KEY"Sample JSON response
{
"date": "1990-01-15",
"time": "10:30",
"location": {
"lat": 19.076,
"lon": 72.8777,
"alt": 0
},
"tz": "Asia/Kolkata",
"ayanamsa": "lahiri",
"ayanamsa_value": 23.71795,
"house_system": "whole_sign",
"ascendant": {
"sidereal_lon": 326.391667,
"sign_index": 10,
"deg_in_sign": 26.391667,
"dms_in_sign": "26°23'30\"",
"nakshatra_idx": 24,
"pada": 2,
"nak_lord": "Jupiter",
"mc": 239.182315,
"house_system": "whole_sign"
}
}Western ascendant (rising sign)
Read ascendant.sign, ascendant.longitude and ascendant.degree_in_sign for a Western natal chart. The default zodiac is tropical and the response also includes the sign ruler.
curl "https://api.lifeastroapi.com/v1/western/natal/ascendant?date=1990-01-15&tz=Asia%2FKolkata&lat=19.076&lon=72.8777&time=10%3A30" \
-H "Authorization: Bearer YOUR_API_KEY"Sample JSON response
{
"birth_date": "1990-01-15",
"birth_time": "10:30",
"location": {
"lat": 19.076,
"lon": 72.8777,
"alt": 0
},
"tz": "Asia/Kolkata",
"house_system": "placidus",
"ascendant": {
"longitude": 350.109617,
"sign_index": 11,
"sign": "Pisces",
"degree_in_sign": 20.109617,
"dms_in_sign": "20°06'34\"",
"ruler": "Neptune"
}
}For API keys and authentication, see the LifeAstroAPI quickstart.