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

Djamaspa (DEPRECATED — RED quality, sunset 2027-06-15)

Deprecated
POST
/djamaspa
request.sh
curl -X POST https://api.astroway.info/v1/djamaspa \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52 }'

DEPRECATED — RED quality (oral Zoroastrian tradition, scattered manuscripts, no canonical reference). Still works until its 2027-06-15 sunset (12-month, per the /v1 stability policy), then will be removed. Migrate to broader /reference endpoints or remove the dependency. Calculate Djamaspa planetary positions for date.

Media type application/json
object
date required
string
/^\d{4}-\d{2}-\d{2}$/
Example
{
"date": "1990-05-15",
"time": "14:30:00",
"timezoneOffset": 3,
"latitude": 50.45,
"longitude": 30.52
}

Successful calculation

Media type application/json
object
ok
boolean
data
object
planets
Array<object>
nullable
object
planet
string
nullable
longitude
number
nullable
djamaspaSign
string
nullable
quality
string
nullable
strength
number
nullable
dayQuality
string
nullable
recommendation
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"
}
}
Корисно?