/api/astro/ascendant/1 creditAscendant (rising sign / Lagna) calculator
The Ascendant: the degree of the zodiac rising on the eastern horizon at the moment and place of birth, also called the rising sign or the Lagna. One call returns it in both zodiacs. `lagna` is the sidereal Ascendant of Vedic astrology: sign and rashi, degree, sign lord, nakshatra and pada with the nakshatra lord, and the navamsa sign. `rising_sign` is the tropical Ascendant used in Western astrology, with its element and modality. The Midheaven is returned in both zodiacs too. The Ascendant does not depend on the house system, so none is asked for. The ayanamsa defaults to Lahiri; pass `ayanamsa` for another. Send the birth time with its UTC offset, or give `timezone_as_float`.
https://api.occultapi.com/api/astro/ascendant/Authentication
Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonRequest fields
| Field | Type | Required | Notes |
|---|---|---|---|
| date_time | string | required | The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers. |
| latitude | number (double) | required | Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first. min -89.9 · max 89.9 |
| longitude | number (double) | required | Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China. min -180 · max 180 |
| ayanamsa | string | optional | Ayanamsa for the sidereal (Vedic) Lagna, case-insensitive: LAHIRI (default), KRISHNAMURTI, RAMAN, FAGAN_BRADLEY and the rest. |
| timezone_as_float | number (double) | optional | UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset. min -12 · max 14 |
Example request
curl -X POST https://api.occultapi.com/api/astro/ascendant/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"1990-08-15T10:30:00+05:30","latitude":26.9124,"longitude":75.7873}'Response
{
"data": {
"lagna": {
"longitude": 177.748946,
"sign": "Virgo",
"sign_index": 6,
"degree_in_sign": 27.748946,
"formatted": "27°44'56\" Virgo",
"sign_lord": "Mercury",
"element": "Earth",
"modality": "Mutable",
"rashi": "Kanya",
"nakshatra": "Chitra",
"nakshatra_index": 14,
"pada": 2,
"nakshatra_lord": "Mars",
"navamsa_sign": "Virgo",
"navamsa_rashi": "Kanya"
},
"rising_sign": {
"longitude": 201.479077,
"sign": "Libra",
"sign_index": 7,
"degree_in_sign": 21.479077,
"formatted": "21°28'45\" Libra",
"sign_lord": "Venus",
"element": "Air",
"modality": "Cardinal"
},
"midheaven": {
"sidereal": {
"longitude": 88.617386,
"sign": "Gemini",
"sign_index": 3,
"degree_in_sign": 28.617386,
"formatted": "28°37'03\" Gemini",
"sign_lord": "Mercury",
"element": "Air",
"modality": "Mutable"
},
"tropical": {
"longitude": 112.347516,
"sign": "Cancer",
"sign_index": 4,
"degree_in_sign": 22.347516,
"formatted": "22°20'51\" Cancer",
"sign_lord": "Moon",
"element": "Water",
"modality": "Cardinal"
}
},
"ayanamsa": "LAHIRI",
"ayanamsa_degrees": 23.73013,
"date_time_utc": "1990-08-15T05:00:00+00:00",
"latitude": 26.9124,
"longitude": 75.7873
},
"status": 200,
"is_error": false,
"message": "successful"
}Captured from a real call using the exact request above. Results sit under data.
Errors
Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.