LifeAstroAPILifeAstroAPI

API Reference / Vedic Astrology / Panchang

GET
20 credits

/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.

example request
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.

NameRequiredExampleDescription
dateyes2027-01-15Date (YYYY-MM-DD).
tzyesAsia/KolkataTimezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
latyes28.6139Latitude in decimal degrees.
lonyes77.209Longitude in decimal degrees.
ayanamsano—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.

200 response
{
  "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.

FieldTypeMeaning
datestring
The requested date.
example: "2027-01-15"
location, tzobject, string
Echo of the location and timezone you sent.
example: …
sunrise_local, sunset_localstring
Local sunrise and sunset of the civil day.
example: "2027-01-15 07:14:47"
tithiobject
Tithi current at local sunrise (index 0–29, name, paksha, number within the paksha).
example: …
nakshatraobject
Nakshatra and pada at local sunrise.
example: …
yogaobject
Yoga at local sunrise.
example: …
karanaobject
Karana at local sunrise.
example: …
varaobject
Weekday and its ruling planet.
example: …

Usage tips

How to use it

  • When to use it
    Compact "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.