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

Aspect Timeline

POST
/aspect-timeline
request.sh
curl -X POST https://api.astroway.info/v1/aspect-timeline \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "planet1Id": 0, "planet2Id": 6, "aspectAngle": 90, "startDate": "2024-01-01", "endDate": "2024-12-31", "orb": 3 }'

Calculate a timeline of when two specific planets form an exact aspect within a date range, including enter/exact/leave dates.

Media type application/json
object
startDate required
string
/^\d{4}-\d{2}-\d{2}$/
endDate required
string
/^\d{4}-\d{2}-\d{2}$/
stepDays
number
>= 0.041666666666666664 <= 365
planet1Ids
Array<integer>
<= 32 items
planet2Ids
Array<integer>
<= 32 items
aspectAngles
Array<number>
<= 64 items
maxOrb
number
>= 1e-9 <= 30
Example
{
"planet1Id": 0,
"planet2Id": 6,
"aspectAngle": 90,
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"orb": 3
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
count
number
nullable
timelines
Array<object>
nullable
object
planet1Id
number
nullable
planet2Id
number
nullable
aspect
object
name
string
nullable
i18nKey
string
nullable
angle
number
nullable
orb
number
nullable
symbol
string
nullable
isMajor
boolean
nullable
color
string
nullable
orbSeries
Array<object>
nullable
object
jd
number
nullable
date
string
nullable
orb
number
nullable
exactDates
Array
nullable
Example
{
"ok": true,
"data": {
"count": 168,
"timelines": [
{
"planet1Id": 0,
"planet2Id": 1,
"aspect": {
"name": "Conjunction",
"i18nKey": "aspect_conjunction",
"angle": 0,
"orb": 12,
"symbol": "",
"isMajor": true,
"color": "#660480"
},
"orbSeries": [
{
"jd": 2460321,
"date": "2024-01-11T12:00:00.000Z",
"orb": 0.024571774590640416
}
],
"exactDates": []
}
]
}
}

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"
}
}
Корисно?