Перейти до вмісту
AstroWay/api v2.158.7 · 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
year
number
nullable
month
number
nullable
phases
Array<object>
nullable
object
type
string
nullable
jd
number
nullable
date
string
nullable
longitude
number
nullable
ingresses
Array<object>
nullable
object
jd
number
nullable
date
string
nullable
signIndex
number
nullable
longitude
number
nullable
voidPeriods
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
moonAspects
Array<object>
nullable
object
jd
number
nullable
date
string
nullable
planetId
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
moonLongitude
number
nullable
dailyInfo
Array<object>
nullable
object
date
string
nullable
lunarDay
number
nullable
lunarDayStart
string
nullable
lunarDayEnd
string
nullable
moonSignIndex
number
nullable
moonLongitude
number
nullable
isVoC
boolean
nullable
phase
nullable
ingress
object
jd
number
nullable
date
string
nullable
signIndex
number
nullable
longitude
number
nullable
Example
{
"ok": true,
"data": {
"year": 2024,
"month": 6,
"phases": [
{
"type": "new_moon",
"jd": 2460468.0262145996,
"date": "2024-06-06T12:37:45.000Z",
"longitude": 76.29534844344522
}
],
"ingresses": [
{
"jd": 2460462.6447265614,
"date": "2024-06-01T03:28:24.000Z",
"signIndex": 0,
"longitude": 0
}
],
"voidPeriods": [
{
"startJd": 2460462.621328125,
"startDate": "2024-06-01T02:54:43.000Z",
"endJd": 2460462.644609375,
"endDate": "2024-06-01T03:28:14.000Z",
"nextSignIndex": 0,
"durationHours": 0.5587500035762787,
"lastAspect": {
"planetId": 8,
"aspectName": "Conjunction",
"aspectSymbol": ""
}
}
],
"moonAspects": [
{
"jd": 2460462.6212771744,
"date": "2024-06-01T02:55:00.000Z",
"planetId": 8,
"aspect": {
"name": "Conjunction",
"i18nKey": "aspect_conjunction",
"angle": 0,
"orb": 12,
"symbol": "",
"isMajor": true,
"color": "#660480"
},
"moonLongitude": 359.66755752916276
}
],
"dailyInfo": [
{
"date": "2024-06-01T00:00:00.000Z",
"lunarDay": 25,
"lunarDayStart": "2024-06-01T03:22:00.000Z",
"lunarDayEnd": "2024-06-02T03:22:00.000Z",
"moonSignIndex": 0,
"moonLongitude": 5.05965072191194,
"isVoC": true,
"phase": null,
"ingress": {
"jd": 2460462.6447265614,
"date": "2024-06-01T03:28:24.000Z",
"signIndex": 0,
"longitude": 0
}
}
]
}
}

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