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

Daily Horoscope

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

Generate a daily horoscope by zodiac sign, grounded in real ephemeris data (current Moon phase, transits). Multi-language. AI-written, not pre-generated content.

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 ru pl es pt fr it nl cs ro hu el tr ar hi ja ko vi id
disclaimer_inline
boolean
Example
{
"sign": "aries",
"date": "2026-05-04",
"language": "uk"
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
date
string
language
string
title
string
body
string
transitFacts
Array<object>
object
type
string
exactTime
string
Example
{
"ok": true,
"data": {
"date": "2026-05-04",
"language": "uk",
"title": "День відкриттів",
"body": "Місяць у ваших Близнюках посилює…",
"transitFacts": [
{
"type": "Moon-square-Sun",
"exactTime": "14:23 UTC"
}
]
}
}

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