Planetary Hours
Changed onChaldean planetary hours for a date and place: 12 from sunrise to sunset and 12 from sunset to sunrise, so an hour is rarely 60 minutes. startHour and endHour are decimal local hours. Send atLocalHour (decimal local time, e.g. 15.2 for 15:12) to have the hour containing it marked isCurrent; without it no hour carries the field, because the answer is cacheable and a flag from the server clock would be stale by the time it renders. sunTimes.polarState is normal, polar-day or polar-night, and in the two polar cases there is nothing to divide, so hours comes back empty with a warning saying why.
Request
- Base URL: https://api.astroway.info/v1
- URL: https://api.astroway.info/v1/planetary-hours
- Auth: API key in header X-Api-Key
Query parameters
Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.
Round every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.
Request body
Example request
{
"timezone": "Europe/Kyiv",
"atLocalHour": 15.2
}Response
Successful calculation
Example response
{
"ok": true
}Changes
- info
added the new optional
queryrequest parameterfields - info
added the new optional
queryrequest parameterprecision
- info
- info
added the new optional request property
- info