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

Weekly Horoscope

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

Generate a weekly horoscope (7-day window) with key transit events and themes. AI-written, ephemeris-grounded.

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
weekStart
string
nullable
weekEnd
string
nullable
language
string
nullable
title
string
nullable
body
string
nullable
keyTransits
Array<object>
nullable
object
date
string
nullable
type
string
nullable
Example
{
"ok": true,
"data": {
"weekStart": "2026-05-04",
"weekEnd": "2026-05-10",
"language": "uk",
"title": "Тиждень переоцінки",
"body": "...",
"keyTransits": [
{
"date": "2026-05-07",
"type": "Mercury-trine-Saturn"
}
]
}
}

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