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

Moon Void-of-Course

POST
/moon-voc
request.sh
curl -X POST https://api.astroway.info/v1/moon-voc \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "2024-06-15", "time": "12:00:00", "timezoneOffset": 0, "rangeDays": 14 }'

Find Moon void-of-course periods within a date range. The Moon is VOC from its last aspect until it enters the next sign.

Media type application/json
object
date required
string
/^\d{4}-\d{2}-\d{2}$/
time required
string
/^\d{2}:\d{2}:\d{2}$/
timezoneOffset

Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC.

number
0 nullable >= -14 <= 14
rangeDays
number
>= 1e-9 <= 366
Example
{
"date": "2024-06-15",
"time": "12:00:00",
"timezoneOffset": 0,
"rangeDays": 14
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
periods
Array<object>
nullable
object
startJd
number
nullable
startDate
string
nullable
endJd
number
nullable
endDate
string
nullable
nextSignIndex
number
nullable
durationHours
number
nullable
lastAspect
object
planetId
number
nullable
aspectName
string
nullable
aspectSymbol
string
nullable
Example
{
"ok": true,
"data": {
"periods": [
{
"startJd": 2460478.7364843767,
"startDate": "2024-06-17T05:40:32.000Z",
"endJd": 2460478.776328127,
"endDate": "2024-06-17T06:37:55.000Z",
"nextSignIndex": 7,
"durationHours": 0.9562500044703484,
"lastAspect": {
"planetId": 2,
"aspectName": "Trine",
"aspectSymbol": ""
}
}
]
}
}

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