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

24 Solar Terms (節氣)

POST
/chinese/solar-terms
request.sh
curl -X POST https://api.astroway.info/v1/chinese/solar-terms \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "year": 2026 }'

The 24 solar terms of a Chinese solar year as exact instants, in UTC and Beijing time. Twelve of them open a BaZi pillar month; the other twelve decide where a leap month falls.

Media type application/json
object
Example
{
"year": 2026
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
year
number
nullable
terms
Array<object>
nullable
object
index
number
nullable
chinese
string
nullable
pinyin
string
nullable
english
string
nullable
sunLongitude
number
nullable
utc
string
nullable
beijing
string
nullable
opensPillarMonth
boolean
nullable
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"
}
}
Корисно?