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

Tzolkin Day Sign

POST
/mayan/tzolkin

260-day sacred calendar. Returns 1-13 number + 20 day-name + element + direction + keyword.

curl -X POST https://api.astroway.info/v1/mayan/tzolkin \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-06-15" }'
object
Example
{
"date": "1990-06-15"
}

Successful calculation

object
ok
boolean
Example
true
data
object
date
string
tzolkin
object
number
number
name
string
label
string
keyword
string
element
string
direction
string
Example
{
"ok": true,
"data": {
"date": "1990-06-15",
"tzolkin": {
"number": 8,
"name": "Men",
"label": "8 Men",
"keyword": "eagle / vision",
"element": "Air",
"direction": "West"
}
}
}

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