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

Rave New Years

POST
/hd/rave-new-years
request.sh
curl -X POST https://api.astroway.info/v1/hd/rave-new-years \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "startYear": 2020, "endYear": 2030 }'

Calculate Rave New Year dates (exact moment Sun enters Gate 41) for a range of years. Max range: 50 years.

Media type application/json
object
startYear required
number
nullable
endYear required
number
nullable
Example
{
"startYear": 2020,
"endYear": 2030
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
count
number
years
Array<object>
object
year
number
date
string
time
string
jd
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"
}
}
Корисно?