API Reference / Vedic Astrology / Chart (Kundli)
/v1/chart/planets
All 9 planets with longitude/sign/nakshatra/pada/house.
What this tells you
This is the base endpoint for a birth chart. It returns all 9 grahas with sidereal longitude, sign, nakshatra and pada, whole-sign house, daily speed and retrograde flag. Rahu is the mean node and Ketu is exactly opposite. The ascendant is not part of this response: call /v1/chart/ascendant for it, or /v1/chart/astro-details to get planets and ascendant in one call.
Request
All requests require an Authorization header with your dv_live_* API key.
curl "https://api.lifeastroapi.com/v1/chart/planets?date=1990-01-15&tz=Asia%2FKolkata&lat=19.076&lon=72.8777&time=10%3A30" \
-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 | 1990-01-15 | Birth date (YYYY-MM-DD). |
tz | yes | Asia/Kolkata | Birth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30). |
lat | yes | 19.076 | Birth place latitude in decimal degrees. |
lon | yes | 72.8777 | Birth place longitude in decimal degrees. |
time | no | 10:30 | Birth time (HH:MM, 24-hour, local). Defaults to 12:00. |
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": "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",
"planets": [
{
"id": "sun",
"name": "Sun",
"sidereal_lon": 271.063319,
"sign_index": 9,
"deg_in_sign": 1.063319,
"dms_in_sign": "01°03'47\"",
"house": 12,
"nakshatra_idx": 20,
"pada": 2,
"nak_lord": "Sun",
"speed": 1.018256,
"is_retro": false,
"ecl_lat": -0.000088
},
{
"id": "moon",
"name": "Moon",
"sidereal_lon": 140.127289,
"sign_index": 4,
"deg_in_sign": 20.127289,
"dms_in_sign": "20°07'38\"",
"house": 7,
"nakshatra_idx": 10,
"pada": 3,
"nak_lord": "Venus",
"speed": 12.579355,
"is_retro": false,
"ecl_lat": -2.411875
}
]
}Field reference
Every field in the response, with its type, a real example, and what it means.
| Field | Type | Meaning |
|---|---|---|
| date | string | Birth date you sent (YYYY-MM-DD), echoed back. example: "1990-01-15" |
| time | string | Birth time you sent, echoed back. "12:00" when you leave `time` out. example: "10:30" |
| tz | string | Timezone you sent (IANA name or fixed offset such as +05:30), echoed back. example: "Asia/Kolkata" |
| location | object | Birth coordinates used. `alt` is in metres and is 0 unless you send `alt`. example: { "lat": 19.076, "lon": 72.8777, "alt": 0 } |
| ayanamsa | string | Ayanamsa used. Default lahiri; set it with the `ayanamsa` parameter (lahiri, raman, krishnamurti, fagan, yukteshwar, true_chitrapaksha). example: "lahiri" |
| ayanamsa_value | number | Ayanamsa in degrees at the birth moment. Sidereal longitude = tropical longitude − this value. example: 23.71795 |
| house_system | string | Echo of the optional `house_system` parameter (default whole_sign). This endpoint does not use it, so you never need to send it; only /v1/chart/houses changes with it. Planet `house` numbers here are always whole-sign. example: "whole_sign" |
| planets[] | array of 9 objects | The 9 grahas, always in this order: Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu. example: [{ "id": "sun", "name": "Sun", … }, …] |
| planets[].id | string | Stable lowercase English key. It does not change with `locale`, so use it to match planets in code. example: "sun" |
| planets[].name | string | Planet name. Translated when you pass `locale` (e.g. `?locale=hi`). example: "Sun" |
| planets[].sidereal_lon | number (0–360) | Sidereal longitude in degrees, with the chosen ayanamsa applied. Use this for your own chart math. example: 271.063319 |
| planets[].sign_index | integer (0–11) | Sign: 0=Aries, 1=Taurus, …, 11=Pisces. No sign name is returned; map the index yourself. example: 9 |
| planets[].deg_in_sign | number (0–30) | Degrees inside the sign. example: 1.063319 |
| planets[].dms_in_sign | string | Degrees, minutes and seconds inside the sign, for display. example: "01°03'47\"" |
| planets[].house | integer (1–12) | Whole-sign house counted from the ascendant sign. Always whole-sign, even if you pass `house_system`. example: 12 |
| planets[].nakshatra_idx | integer (0–26) | Nakshatra: 0=Ashwini, 1=Bharani, …, 26=Revati. example: 20 |
| planets[].pada | integer (1–4) | Quarter (pada) of the nakshatra. example: 2 |
| planets[].nak_lord | string | Vimshottari lord of the nakshatra. Translated with `locale`. example: "Sun"Jyotish: The Moon's nak_lord is the lord of the first Vimshottari mahadasha. |
| planets[].speed | number | Daily motion in longitude, in degrees per day. Negative means retrograde. example: 1.018256 |
| planets[].is_retro | boolean | True when `speed` is negative. Rahu and Ketu (mean node) are always true. example: false |
| planets[].ecl_lat | number | Geocentric ecliptic latitude in degrees (north positive). Decides a graha yuddha: the planet further north wins. Left out for Rahu and Ketu, which sit on the ecliptic. example: -0.000088 |
Usage tips
How to use it
- Cache forever per userBirth data doesn't change. Hash date, time, tz, lat and lon (plus `ayanamsa` and `locale` if you send them) and cache the response.
- Rendering a chartNorth Indian diamond: the houses are fixed, so place each planet by `house` (1–12). South Indian square: the signs are fixed, so place each planet by `sign_index` and mark the ascendant sign from /v1/chart/ascendant.
- Retrograde symbolShow a small "℞" next to planets where `is_retro` is true. Rahu and Ketu always come back retrograde.
- Names and localeThe response has `sign_index` and `nakshatra_idx` but no sign or nakshatra names; map them in your app. `?locale=hi` (also mr, ta, te, kn, ml, bn, gu, pa) translates `name` and `nak_lord`. `id` always stays English.
- Topocentric MoonThe Moon is geocentric by default. Pass `topocentric_moon=true` to compute it as seen from the birth location.
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.