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

Lunar Calendar

POST
/lunar-calendar
request.sh
curl -X POST https://api.astroway.info/v1/lunar-calendar \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "year": 2024, "month": 6 }'

Calculate a lunar calendar for a given month: Moon sign per day, lunar phases, void-of-course windows, and perigee/apogee.

Media type application/json
object
year required
number
nullable
month required
number
nullable
Example
{
"year": 2024,
"month": 6
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
days
Array<object>
object
date
string
moonSign
string
moonLongitude
number
phase
string
voc
boolean
phases
Array<object>
object
type
string
date
string
time
string
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"
}
}
Корисно?