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

Biorhythm (JSON)

POST
/wellness/biorhythm
request.sh
curl -X POST https://api.astroway.info/v1/wellness/biorhythm \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "birthDate": "1990-06-15", "rangeStart": "2026-06-15", "rangeEnd": "2026-06-21" }'

Physical (23d), emotional (28d) and intellectual (33d) cycle values per day, plus the critical days where a cycle crosses zero. Data twin of POST /render/biorhythm.

Media type application/json
object
birthDate required
string
/^\d{4}-\d{2}-\d{2}$/
rangeStart
string
/^\d{4}-\d{2}-\d{2}$/
rangeEnd
string
/^\d{4}-\d{2}-\d{2}$/
Example
{
"birthDate": "1990-06-15",
"rangeStart": "2026-06-15",
"rangeEnd": "2026-06-21"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
range
object
start
string
nullable
end
string
nullable
days
number
nullable
days
Array<object>
nullable
object
date
string
nullable
dayOfLife
number
nullable
physical
number
nullable
emotional
number
nullable
intellectual
number
nullable
critical
Array
nullable
criticalDays
Array<object>
nullable
object
date
string
nullable
cycles
Array<string>
nullable
Example
{
"ok": true,
"data": {
"range": {
"start": "2026-06-15",
"end": "2026-06-21",
"days": 7
},
"days": [
{
"date": "2026-06-15",
"dayOfLife": 13149,
"physical": -0.9423,
"emotional": -0.6235,
"intellectual": 0.2817,
"critical": []
}
],
"criticalDays": [
{
"date": "2026-06-16",
"cycles": [
"intellectual"
]
}
]
}
}

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