POST/v1/astro/panchanga/hora
Planetary hours (Hora)
Calculates all 24 Hora (planetary hours) for a date and location, using unequal seasonal hours. Sunrise to sunset and sunset to next sunrise are each split into 12 equal parts. The first hora after sunrise is ruled by the sunrise-boundary Vedic vara lord; subsequent horas follow the Chaldean sequence. Response includes a convention field naming the division used.
GET works tooGET /v1/astro/panchanga/hora: Same answer as the POST route with the same fields as query parameters; cacheable (public, 10 minutes). Current-moment flags such as is_current may lag by up to the cache age.
Request parameters
daterequired
string
Date in YYYY-MM-DD format
locationoptional
string | null
City name. Example: 'Mumbai'
latitudeoptional
number | null
Latitude in decimal degrees, north positive. Use with longitude and timezone instead of location.
longitudeoptional
number | null
Longitude in decimal degrees, east positive. Use with latitude and timezone instead of location.
timezoneoptional
string | null
IANA timezone string
Response fields
success
boolean
True if the request succeeded
message
string
Human-readable status message
data
object
data.status
string
ok, or no_sunrise when the place has no sunrise or sunset on that date (polar latitudes): the window fields are then null.
data.status_detail
string | null
Plain-English reason when status is not ok.
data.date
string
Date for which Hora is calculated (YYYY-MM-DD).
data.convention
string | null
Hora division used.
unequal_seasonal = 12 day + 12 night parts from real sunrise/sunset (panchanga / electional).data.sunrise
string | null
Sunrise time in HH:MM local time.
data.sunrise_at
string | null
Sunrise time, ISO 8601 local time with date and UTC offset.
data.sunrise_utc
string | null
Sunrise time, ISO 8601 UTC with Z.
data.sunset
string | null
Sunset time in HH:MM local time.
data.sunset_at
string | null
Sunset time, ISO 8601 local time with date and UTC offset.
data.sunset_utc
string | null
Sunset time, ISO 8601 UTC with Z.
data.next_sunrise
string | null
Next day sunrise time in HH:MM local time.
data.next_sunrise_at
string | null
Next day sunrise time, ISO 8601 local time with date and UTC offset.
data.next_sunrise_utc
string | null
Next day sunrise time, ISO 8601 UTC with Z.
data.horas
array[HoraPeriod] | null
24 planetary hours: 12 from sunrise to sunset, then 12 from sunset to next sunrise.
Errors
Invalid API key format.
API key is missing. Include it in the Authorization header as 'Bearer YOUR_KEY'.
The provided API key was not found. Verify the key in your Asterwise dashboard.
This API key has been revoked.
Too many requests per minute. Please slow down.
Something went wrong on our end. Please try again, or contact [email protected] if the problem persists. Include your request_id when contacting support.
Too many requests from this IP address. Please slow down.
Monthly API call limit reached. Upgrade your plan to continue.
Request body exceeds maximum allowed size of 64KB.
Your subscription has expired. Please renew at asterwise.com/dashboard to continue.
The request couldn't be processed. See the 'details' field for specific field-level issues.