LifeAstroAPILifeAstroAPI

API Reference / Vedic Astrology / Chart (Kundli)

GET
10 credits

/v1/chart/aspects

Graha drishti (planetary aspects).

What this tells you

Graha drishti (planetary aspects) in Vedic astrology works by house, not by exact degree. Every planet casts a 7th-house aspect. Mars also casts 4th and 8th; Jupiter also 5th and 9th; Saturn also 3rd and 10th. Aspects are always full-strength and directional (from planet to house). This response lists the houses each planet aspects and the lord of each of those houses; it does not list planet-to-planet pairs.

Request

All requests require an Authorization header with your dv_live_* API key.

example request
curl "https://api.lifeastroapi.com/v1/chart/aspects?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.

NameRequiredExampleDescription
dateyes1990-01-15Birth date (YYYY-MM-DD).
tzyesAsia/KolkataBirth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
latyes19.076Birth place latitude in decimal degrees.
lonyes72.8777Birth place longitude in decimal degrees.
timeno10:30Birth time (HH:MM, 24-hour, local). Defaults to 12:00.
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": "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",
  "aspects": [
    {
      "planet": "Sun",
      "planet_house": 12,
      "aspected_house": 6,
      "aspected_house_lord": "Moon"
    },
    {
      "planet": "Moon",
      "planet_house": 7,
      "aspected_house": 1,
      "aspected_house_lord": "Saturn"
    }
  ]
}

Field reference

Every field in the response, with its type, a real example, and what it means.

FieldTypeMeaning
datestring
Birth date you sent (YYYY-MM-DD), echoed back.
example: "1990-01-15"
timestring
Birth time you sent, echoed back. "12:00" when you leave `time` out.
example: "10:30"
tzstring
Timezone you sent (IANA name or fixed offset such as +05:30), echoed back.
example: "Asia/Kolkata"
locationobject
Birth coordinates used. `alt` is in metres and is 0 unless you send `alt`.
example: { "lat": 19.076, "lon": 72.8777, "alt": 0 }
ayanamsastring
Ayanamsa used. Default lahiri; set it with the `ayanamsa` parameter (lahiri, raman, krishnamurti, fagan, yukteshwar, true_chitrapaksha).
example: "lahiri"
ayanamsa_valuenumber
Ayanamsa in degrees at the birth moment. Sidereal longitude = tropical longitude − this value.
example: 23.71795
house_systemstring
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"
aspects[]array of objects
One entry per (planet, aspected house) pair, grouped by planet in the order Sun to Ketu. Sun, Moon, Mercury and Venus have 1 entry each; Mars, Jupiter, Saturn, Rahu and Ketu have 3 each (19 in total).
example: [{ "planet": "Sun", "planet_house": 12, … }, …]
aspects[].planetstring
Planet casting the aspect. Translated with `locale`.
example: "Sun"
aspects[].planet_houseinteger (1–12)
Whole-sign house the planet sits in.
example: 12
aspects[].aspected_houseinteger (1–12)
House that receives the aspect, counted from `planet_house` with that house as 1 (the 7th aspect from house 12 lands on house 6).
example: 6
Jyotish: Every planet aspects the 7th house from itself. Mars also aspects the 4th and 8th, Jupiter the 5th and 9th, Saturn the 3rd and 10th. This API gives Rahu and Ketu the same 5th, 7th and 9th aspects as Jupiter.
aspects[].aspected_house_lordstring
Lord of the sign in the aspected house. Translated with `locale`.
example: "Moon"

Usage tips

How to use it

  • Which planets are aspected?
    Join `aspected_house` with `house` from /v1/chart/planets (or with /v1/chart/house-occupants) to get the planets that receive each aspect.
  • Draw aspect lines on a chart
    For each entry, draw a line from `planet_house` to `aspected_house` in your chart UI.
  • Filter by intensity
    The special aspects of Mars, Jupiter and Saturn are usually shown most prominently. Hide the plain 7th aspects if the chart gets crowded.

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.