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

Retrograde Periods

POST
/retrograde-periods
request.sh
curl -X POST https://api.astroway.info/v1/retrograde-periods \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "planetId": 2, "startDate": "2024-01-01", "endDate": "2024-12-31" }'

Find all retrograde stations (direct, retrograde, stationary) for a planet within a date range.

Media type application/json
object
startDate required
string
/^\d{4}-\d{2}-\d{2}$/
endDate required
string
/^\d{4}-\d{2}-\d{2}$/
planetIds
Array<number>
Example
{
"planetId": 2,
"startDate": "2024-01-01",
"endDate": "2024-12-31"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
periods
Array<object>
object
retrogradStation
string
directStation
string
shadowEntry
string
shadowExit
string
retrogradeLongitude
number
directLongitude
number
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"
}
}
Корисно?