Skip to main content

Planetary hours (Hora)

Calculate all 24 Hora (planetary hours) for a given date and location, starting from sunrise. Each hora is ruled by a planet in the Chaldean sequence with qualities indicating suitable activities.

Endpoint

POST /v1/astro/panchanga/hora

Request parameters

FieldTypeRequiredDescription
datestringYesDate in YYYY-MM-DD format
locationstring | nullNoCity name. Example: 'Mumbai'
latitudenumber | nullNo
longitudenumber | nullNo
timezonestring | nullNoIANA timezone string

Example request

curl -X POST "https://api.asterwise.com/v1/astro/panchanga/hora" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"1990-05-15","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"}'

Example response

{
"success": true,
"message": "success",
"data": {
"date": "1990-05-15",
"sunrise": "05:29",
"next_sunrise": "05:28",
"horas": [
{
"hora": 1,
"ruling_planet": "Mars",
"start": "05:29",
"end": "06:29",
"quality": "Physical activity, surgery, courage, property dealings, conflict resolution, siblings",
"is_current": false
},
{
"hora": 2,
"ruling_planet": "Sun",
"start": "06:29",
"end": "07:29",
"quality": "Leadership, government work, authority, dealing with officials, father-related matters",
"is_current": false
},
"... and 22 more items"
]
}
}

Response fields

FieldTypeDescription
successbooleanTrue if the request succeeded
messagestringHuman-readable status message
dataobject
data.datestringDate for which Hora is calculated (YYYY-MM-DD).
data.sunrisestringSunrise time in HH:MM local time.
data.next_sunrisestringNext day sunrise time in HH:MM local time.
data.horasarray[object]24 planetary hours from sunrise to next sunrise.
data.horas[].horaintegerHora number, 1 to 24.
data.horas[].ruling_planetstringPlanet ruling this hora.
data.horas[].startstringHora start time in HH:MM local time.
data.horas[].endstringHora end time in HH:MM local time.
data.horas[].qualitystringActivities suited to this planetary hora.
data.horas[].is_currentbooleanTrue if this hora is currently active.

Errors

CodeDescriptionReference
authentication_failedMissing or invalid API key.authentication_failed
ephemeris_unavailableUpstream ephemeris service error.ephemeris_unavailable
insufficient_tierAPI key tier does not include this endpoint.insufficient_tier
internal_errorUnexpected server error.internal_error
ip_rate_limit_exceededToo many requests in a short window.ip_rate_limit_exceeded
payload_too_largeRequest body exceeds the size limit.payload_too_large
resource_not_foundReferenced resource was not found.resource_not_found
validation_errorRequest body failed schema validation.validation_error