Find Uday Lagna API
Unveil the ascendant (Lagna) windows throughout the day with the Find Uday Lagna API. This API returns a time-sliced list of rising signs (Capricorn, Aquarius, Pisces, etc.) with exact start and end timestamps for the given date, place, and timezone. This helps you align beginnings, rituals, and actions with a suitable Lagna as per Indian Astrology.
Step-by-Step Find Uday Lagna API Postman Testing Integration
Refer to the official guide to learn how to test this API using Postman:
Step by Step Find Uday Lagna API Postman Testing Integration
https://support.divineapi.com/indian-astrology-apis/testing-panchang-api-find-uday-lagna-api-using-postman
Supported Language Codes
You can request the response in multiple languages by passing the lan parameter in the body.
Reference article:
https://support.divineapi.com/general-api-support/translating-an-indian-vedic-apis-into-a-different-language
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| bn | Bengali |
| ma | Marathi |
| tm | Tamil |
| tl | Telugu |
| ml | Malayalam |
| kn | Kannada |
Guide: If lan is not provided, the response defaults to en.
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v2/uday-lagna
This endpoint returns all Uday Lagna slots (rising signs) for the specified date and location.
Headers
| Name | Type | Description |
|---|---|---|
| Authorization* | String | Your API Access Token, e.g. Bearer {token} |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | Your API key from Divine. |
| day | Integer | Yes | Panchang day, e.g. 24. |
| month | Integer | Yes | Panchang month, e.g. 05. |
| year | Integer | Yes | Panchang year, e.g. 2023. |
| place | String | No | Place name, e.g. New Delhi. |
| lat | Float | Yes | Latitude of the place, e.g. 28.6139. |
| lon | Float | Yes | Longitude of the place, e.g. 77.2090. |
| tzone | Float | Yes | Timezone offset, e.g. 5.5. See: https://developers.divineapi.com/divine-api/understanding-time-zones-a-comprehensive-guide |
| lan | String | No | Response language code. Default is en. |
| sign_lan | Integer | No | 0 for English 1 for Sanskrit, Default is '0' |
200: OK Uday Lagna fetched successfully
{
"success": 1,
"data": {
"date": "2025-2-05",
"sunrise": "2025-02-05 07:07:27",
"sunset": "2025-02-05 18:04:00",
"uday_lagna": [
{
"sign": "Capricorn",
"start_time": "2025-02-05 07:07:27",
"end_time": "2025-02-05 07:35:27"
},
{
"sign": "Aquarius",
"start_time": "2025-02-05 07:36:27",
"end_time": "2025-02-05 09:02:27"
},
{
"sign": "Pisces",
"start_time": "2025-02-05 09:03:27",
"end_time": "2025-02-05 10:27:27"
},
{
"sign": "Aries",
"start_time": "2025-02-05 10:28:27",
"end_time": "2025-02-05 12:02:27"
},
{
"sign": "Taurus",
"start_time": "2025-02-05 12:03:27",
"end_time": "2025-02-05 13:58:27"
},
{
"sign": "Gemini",
"start_time": "2025-02-05 13:59:27",
"end_time": "2025-02-05 16:12:27"
},
{
"sign": "Cancer",
"start_time": "2025-02-05 16:13:27",
"end_time": "2025-02-05 18:33:27"
},
{
"sign": "Leo",
"start_time": "2025-02-05 18:34:27",
"end_time": "2025-02-05 20:50:27"
},
{
"sign": "Virgo",
"start_time": "2025-02-05 20:51:27",
"end_time": "2025-02-05 23:07:27"
},
{
"sign": "Libra",
"start_time": "2025-02-05 23:08:27",
"end_time": "2025-02-06 01:26:27"
},
{
"sign": "Scorpio",
"start_time": "2025-02-06 01:27:27",
"end_time": "2025-02-06 03:45:27"
},
{
"sign": "Sagittarius",
"start_time": "2025-02-06 03:46:27",
"end_time": "2025-02-06 05:49:27"
},
{
"sign": "Capricorn",
"start_time": "2025-02-06 05:50:27",
"end_time": "2025-02-06 07:06:47"
}
]
}
}
Response Fields Explained
success1 indicates the request was processed successfully.
data.date
The date for which Uday Lagna has been calculated.
data.sunrise / data.sunset
Location-specific sunrise and sunset times that mark the base for Lagna calculations.
data.uday_lagna
An array of Lagna windows for that date. Each object contains:
sign: Ascendant (rising) sign during that interval.
start_time: Beginning of the Lagna.
end_time: End of the Lagna.
This makes it straightforward to pick the next available Lagna suitable for starting an activity.
Usage Notes
You must supply both Authorization: Bearer {Your Auth Token} and a valid api_key in the body.
Since Lagna depends on local sunrise, always provide accurate lat, lon, and tzone.
You can filter the returned list on the client side to show only the upcoming Lagna from current time.
Combine this API with Auspicious/ Inauspicious Timings and Tithi/Nakshatra APIs to build a complete muhurta selection flow.