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

Monthly Horoscope

POST
/horoscope/monthly
request.sh
curl -X POST https://api.astroway.info/v1/horoscope/monthly \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "sign": "aries", "language": "uk" }'

Generate a monthly horoscope with major transits, Moon phases, and personal-year themes (profections-aware).

Accept-Language
string
Allowed values: uk en de ru pl es pt fr it nl cs ro hu el tr ar hi ja ko vi id

Target language for response text fields. RFC 7231 q-weighted. Falls back to ?lang= query param, then body.language, then source uk. Unknown codes silently fall through to uk.

Example
de
lang
string
Allowed values: uk en de ru pl es pt fr it nl cs ro hu el tr ar hi ja ko vi id

Alternative to Accept-Language for clients without header control.

Example
hi
Media type application/json
object
sign required
string
Allowed values: aries taurus gemini cancer leo virgo libra scorpio sagittarius capricorn aquarius pisces
date
string
/^\d{4}-\d{2}-\d{2}$/
language
string
Allowed values: uk en de pl es pt fr it nl cs ro hu el tr ar hi ja ko vi id
disclaimer_inline
boolean
Example
{
"sign": "aries",
"language": "uk"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
month
string
nullable
language
string
nullable
title
string
nullable
body
string
nullable
moonPhases
Array<object>
nullable
object
date
string
nullable
phase
string
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"
}
}
Корисно?