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

Daily Horoscope

POST
/horoscope/daily

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

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" }'
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
default: uk
Allowed values: uk en
disclaimer_inline
boolean
Example
{
"sign": "aries",
"date": "2026-05-04",
"language": "uk"
}

Successful calculation

object
ok
boolean
Example
true
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

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

Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?