API Reference / Western Astrology / Western Astrology
GET
20 credits
/v1/western/composite/planets
Composite (midpoint) chart planets for two people.
Request
All requests require an Authorization header with your dv_live_* API key.
example request
curl "https://api.lifeastroapi.com/v1/western/composite/planets?personA.date=1990-01-15&personA.tz=Asia%2FKolkata&personA.lat=19.076&personA.lon=72.8777&personB.date=1992-03-20&personB.tz=Asia%2FKolkata&personB.lat=28.6139&personB.lon=77.209&personA.time=10%3A30&personB.time=08%3A15" \
-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 |
|---|---|---|---|
personA.date | yes | 1990-01-15 | Person A's birth date (YYYY-MM-DD). |
personA.tz | yes | Asia/Kolkata | Person A's birth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30). |
personA.lat | yes | 19.076 | Person A's birth place latitude in decimal degrees. |
personA.lon | yes | 72.8777 | Person A's birth place longitude in decimal degrees. |
personB.date | yes | 1992-03-20 | Person B's birth date (YYYY-MM-DD). |
personB.tz | yes | Asia/Kolkata | Person B's birth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30). |
personB.lat | yes | 28.6139 | Person B's birth place latitude in decimal degrees. |
personB.lon | yes | 77.209 | Person B's birth place longitude in decimal degrees. |
personA.time | no | 10:30 | Person A's birth time (HH:MM, 24-hour, local). Defaults to 12:00. |
personB.time | no | 08:15 | Person B's birth time (HH:MM, 24-hour, local). Defaults to 12:00. |
house_system | no | — | House system. Phase 2c supports placidus (default), whole_sign, koch, equal. Placidus and Koch reject |lat| > 66° (geometrically undefined inside polar circle); Whole Sign and Equal accept any latitude. |
composite_method | no | — | Composite chart method. midpoint_planets averages each planet's longitude (default, most common). midpoint_cusps averages each cusp pair instead. |
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
{
"person_a": {
"birth_date": "1990-01-15",
"birth_time": "10:30",
"location": {
"lat": 19.076,
"lon": 72.8777,
"alt": 0
},
"tz": "Asia/Kolkata",
"house_system": "placidus"
},
"person_b": {
"birth_date": "1992-03-20",
"birth_time": "08:15",
"location": {
"lat": 28.6139,
"lon": 77.209,
"alt": 0
},
"tz": "Asia/Kolkata",
"house_system": "placidus"
},
"composite_method": "midpoint_planets",
"planets": [
{
"name": "Sun",
"longitude": 327.265458,
"sign_index": 10,
"sign": "Aquarius",
"degree_in_sign": 27.265458,
"dms_in_sign": "27°15'55\"",
"speed": 0,
"retrograde": false,
"house": 11
},
{
"name": "Moon",
"longitude": 180.899706,
"sign_index": 6,
"sign": "Libra",
"degree_in_sign": 0.899706,
"dms_in_sign": "00°53'58\"",
"speed": 0,
"retrograde": false,
"house": 6
}
]
}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.