LifeAstroAPILifeAstroAPI

API Reference / Western Astrology / Western Astrology

GET
10 credits

/v1/western/dignities/triplicity

Triplicity (element) ruler — day/night/active — for a zodiac degree.

Request

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

example request
curl "https://api.lifeastroapi.com/v1/western/dignities/triplicity?lon=72.8777" \
  -H "Authorization: Bearer YOUR_API_KEY"

Query parameters

Checked against the API: a parameter is marked required when the request fails without it.

NameRequiredExampleDescription
lonyes72.8777Longitude in decimal degrees.

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
{
  "longitude": 72.8777,
  "scheme": "dorothean",
  "is_diurnal": true,
  "result": {
    "sign_idx": 2,
    "sign": "Gemini",
    "element": "air",
    "day_ruler": "Saturn",
    "night_ruler": "Mercury",
    "active_ruler": "Saturn",
    "scheme": "dorothean"
  }
}

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.