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

Aspect Bars (Gantt)

POST
/aspect-bar
request.sh
curl -X POST https://api.astroway.info/v1/aspect-bar \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "startDate": "2024-01-01", "endDate": "2024-06-30", "stepDays": 1, "visiblePlanetIds": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ] }'

Transform aspect timelines into Gantt-style bars grouped by transit planet. Each bar shows the duration an aspect is in orb, with exact dates marked. Useful for visual transit calendars.

Media type application/json
object
startDate required
string
/^\d{4}-\d{2}-\d{2}$/
endDate required
string
/^\d{4}-\d{2}-\d{2}$/
stepDays
number
nullable
planet1Ids
Array<number>
planet2Ids
Array<number>
aspectAngles
Array<number>
maxOrb
number
nullable
visiblePlanetIds
Array<number>
Example
{
"startDate": "2024-01-01",
"endDate": "2024-06-30",
"stepDays": 1,
"visiblePlanetIds": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
]
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
rows
number
bars
object
rows
Array<object>
object
planetId
number
bars
Array<object>
object
transitPlanetId
number
targetPlanetId
number
nature
string
startJd
number
endJd
number
maxLanes
number
timeRange
object
start
string
end
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"
}
}
Корисно?