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

Luck Pillars (Da Yun)

POST
/bazi/luck-pillars

10-year luck pillars sequence. Direction by gender + year-stem polarity per Ziping canon.

curl -X POST https://api.astroway.info/v1/bazi/luck-pillars \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-06-15", "gender": "male", "count": 8 }'
object
Example
{
"date": "1990-06-15",
"gender": "male",
"count": 8
}

Successful calculation

object
ok
boolean
Example
true
data
object
direction
string
luckPillars
Array

Validation error

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

Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?