Перейти до вмісту
AstroWay/api v2.102.11 · docs
усі системи в нормі

Aspect Matrix

POST
/aspects
request.sh
curl -X POST https://api.astroway.info/v1/aspects \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1926-06-01", "time": "09:30:00", "timezoneOffset": -8, "latitude": 34.0522, "longitude": -118.2437 }'

Standalone aspect calculation — full inter-planetary aspect list with type / exactAngle / orb / isApplying. Uses per-pair astro.com orb matrix. Same calcAspects() as /chart but without planet positions / houses / midpoints overhead.

Media type application/json
object
Example
{
"date": "1926-06-01",
"time": "09:30:00",
"timezoneOffset": -8,
"latitude": 34.0522,
"longitude": -118.2437
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
count
number
nullable
aspects
Array<object>
nullable
object
planet1
string
nullable
planet2
string
nullable
type
object
name
string
nullable
angle
number
nullable
symbol
string
nullable
isMajor
boolean
nullable
exactAngle
number
nullable
orb
number
nullable
isApplying
boolean
nullable
Example
{
"ok": true
}

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?