Перейти до вмісту
AstroWay/api v2.73.0 · 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
aspects
Array<object>
object
planet1
string
planet2
string
type
object
name
string
angle
number
symbol
string
isMajor
boolean
exactAngle
number
orb
number
isApplying
boolean
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"
}
}
Корисно?