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

Compatibility Horoscope

POST
/horoscope/compatibility
request.sh
curl -X POST https://api.astroway.info/v1/horoscope/compatibility \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "sign1": "aries", "sign2": "leo" }'

Generate a relationship horoscope based on synastry between two charts — strengths, friction points, and themes for the next 30 days.

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
sign1 required
string
>= 1 characters
sign2 required
string
>= 1 characters
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
{
"sign1": "aries",
"sign2": "leo"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
score
number
nullable
language
string
nullable
summary
string
nullable
strengths
Array<string>
nullable
challenges
Array<string>
nullable
Example
{
"ok": true,
"data": {
"score": 72,
"language": "uk",
"summary": "Сильна емоційна резонансність, але…",
"strengths": [
"Sun-Moon trine",
"Venus-Mars sextile"
],
"challenges": [
"Saturn-Mars square"
]
}
}

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