API Reference / Vedic Astrology / Panchang
/v1/panchang/summary
Five panchang elements at sunrise plus sunrise and sunset, in one call.
What this tells you
The `summary` endpoint is the lightest panchang snapshot: the five elements at local sunrise plus sunrise and sunset, in one call. It does not include end times, moonrise or muhurta windows. For end times and moonrise use `/v1/panchang/basic` (same price); for Rahu Kaal, Choghadiya and the other muhurta windows use `/v1/panchang/advanced`.
Request
All requests require an Authorization header with your dv_live_* API key.
curl "https://api.lifeastroapi.com/v1/panchang/summary?date=2027-01-15&tz=Asia%2FKolkata&lat=28.6139&lon=77.209" \
-H "Authorization: Bearer YOUR_API_KEY"Query parameters
Checked against the API: a parameter is marked required when the request fails without it.
| Name | Required | Example | Description |
|---|---|---|---|
date | yes | 2027-01-15 | Date (YYYY-MM-DD). |
tz | yes | Asia/Kolkata | Timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30). |
lat | yes | 28.6139 | Latitude in decimal degrees. |
lon | yes | 77.209 | Longitude in decimal degrees. |
ayanamsa | no | — | Ayanamsa (sidereal offset) to use. Defaults to lahiri. |
Response (200 OK)
The real response to the example request above, generated from the API itself. Long arrays are trimmed to their first two items. Field names are stable across versions.
{
"date": "2027-01-15",
"location": {
"lat": 28.6139,
"lon": 77.209,
"alt": 0
},
"tz": "Asia/Kolkata",
"sunrise_local": "2027-01-15 07:14:47",
"sunset_local": "2027-01-15 17:46:15",
"tithi": {
"index": 6,
"name": "Saptami",
"paksha": "Shukla",
"tithi_in_paksha": 7
},
"nakshatra": {
"index": 26,
"name": "Revati",
"pada": 2
},
"yoga": {
"index": 19,
"name": "Shiva"
},
"karana": {
"index": 13,
"name": "Vanija"
},
"vara": {
"weekday": "Friday",
"lord": "Venus"
}
}Field reference
Every field in the response, with its type, a real example, and what it means.
| Field | Type | Meaning |
|---|---|---|
| date | string | The requested date. example: "2027-01-15" |
| location, tz | object, string | Echo of the location and timezone you sent. example: … |
| sunrise_local, sunset_local | string | Local sunrise and sunset of the civil day. example: "2027-01-15 07:14:47" |
| tithi | object | Tithi current at local sunrise (index 0–29, name, paksha, number within the paksha). example: … |
| nakshatra | object | Nakshatra and pada at local sunrise. example: … |
| yoga | object | Yoga at local sunrise. example: … |
| karana | object | Karana at local sunrise. example: … |
| vara | object | Weekday and its ruling planet. example: … |
Usage tips
How to use it
- When to use itCompact "today" badges or lists where only the names of the five elements are needed. Cache per (date, place) for 24 hours.
- Need more?Use /v1/panchang/basic for end times and moonrise, or /v1/panchang/advanced for the full day including muhurta windows.
Errors
Every error follows the same envelope. Use the error.code field (not the message) for conditional logic in your integration.
401 Unauthorized
{
"error": {
"code": "unauthorized",
"message": "missing or invalid API key",
"request_id": "req_01hqy7k8c3e7m1n"
}
}402 Payment Required
{
"error": {
"code": "trial_exhausted",
"message": "your free trial credits are exhausted — pick a plan to continue",
"top_up_url": "https://lifeastroapi.com/pricing",
"request_id": "req_01hqy7k8c3e7m1n"
}
}429 Too Many Requests
{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded; retry after 12 seconds",
"request_id": "req_01hqy7k8c3e7m1n"
}
}Try it
Get a dv_live_* key from your dashboard and paste into the cURL snippet above. New accounts get 1,500 free credits. Sign up.