LifeAstroAPILifeAstroAPI

API Reference / Reports & Utilities / Meta

GET
free

/v1/meta/ayanamsas

Supported ayanamsa systems.

What this tells you

The sidereal ayanamsa systems the API supports, with each one's value at a given moment. Lahiri (Chitrapaksha) is the default. The systems differ by more than a degree (compare lahiri and raman in `value_deg`), enough to move a planet into another nakshatra or sign near a boundary.

`date` and `tz` are required (`time` defaults to 12:00); a missing one returns 400. Costs 0 credits and needs no API key.

Request

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

example request
curl "https://api.lifeastroapi.com/v1/meta/ayanamsas?date=1990-01-15&tz=Asia%2FKolkata&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).
timeno10:30Birth time (HH:MM, 24-hour, local). Defaults to 12:00.

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
{
  "at_jd": 2447906.708333,
  "ayanamsas": [
    {
      "name": "lahiri",
      "value_deg": 23.71795,
      "is_default": true
    },
    {
      "name": "raman",
      "value_deg": 22.27165
    }
  ]
}

Field reference

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

FieldTypeMeaning
at_jdnumber
Julian Day (UT) of the requested moment (date, time, tz).
example: 2447906.708333
ayanamsas[]array (6 items)
lahiri, raman, krishnamurti, fagan, yukteshwar, true_chitrapaksha, in that order.
example: […]
ayanamsas[].namestring
Identifier. Pass it as `?ayanamsa=<name>` on any endpoint that accepts `ayanamsa`.
example: "lahiri"
ayanamsas[].value_degnumber
Ayanamsa in degrees at `at_jd`, rounded to 5 decimals.
example: 23.71795
ayanamsas[].is_defaultboolean
Present (true) only on the default, lahiri. Absent on the others.
example: true

Usage tips

How to use it

  • Expose as a user setting
    Some users want to switch ayanamsa. Add it as an advanced setting in your app.
  • Labels are yours
    The response has no display label. Map names to labels in your app, e.g. fagan = Fagan-Bradley, true_chitrapaksha = True Chitrapaksha.

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.