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

Bagua Life Areas

POST
/chinese/feng-shui/bagua
request.sh
curl -X POST https://api.astroway.info/v1/chinese/feng-shui/bagua \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-06-15", "gender": "male" }'

Eastern-school Bagua mapping of 9 life areas (career, knowledge, family, wealth, fame, relationships, children, helpful-people, health) onto compass sectors.

Media type application/json
object
Example
{
"date": "1990-06-15",
"gender": "male"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
kuaNumber
number
bagua
Array<object>
object
sector
string
lifeArea
string
element
string
colorTones
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"
}
}
Корисно?