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

Kua Number

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

Personal Kua number from solar-year digit sum + gender. Maps to East/West group for direction work.

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

Successful calculation

Media type application/json
object
ok
boolean
data
object
solarYear
number
nullable
gender
string
nullable
kuaNumber
number
nullable
group
string
nullable
description
string
nullable
Example
{
"ok": true,
"data": {
"solarYear": 1990,
"gender": "male",
"kuaNumber": 7,
"group": "West",
"description": "..."
}
}

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