Перейти до вмісту

Planetary Hours

POST
/api/v1/planetary-hours

Calculate Chaldean planetary hours for a given date and location, starting from sunrise.

object
Example
{
"date": "2024-06-21",
"latitude": 50.45,
"longitude": 30.52,
"timezoneOffset": 3
}

Successful calculation

object
ok
boolean
Example
true
data
object

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"
}
}