---
title: "Horary Planetary Hours"
method: POST
path: "/horary/planetary-hours"
tags: ["Horary"]
---

# Horary Planetary Hours

`POST /horary/planetary-hours`

Return the planetary hour ruler at the exact moment of a horary question and check if it matches the ASC ruler.

## Request body

- PlanetaryHours
  - `date` string, required
  - `latitude` number, nullable, required
  - `longitude` number, nullable, required
  - `timezoneOffset` number, nullable — Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC.
  - `atLocalHour` number — Local time of day in decimal hours, e.g. 15.2 for 15:12. When sent, the hour containing it carries isCurrent: true and every other hour carries false. When omitted, no hour carries the field at all: it is not false, it is unasked.

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `hourRuler` string, nullable
    - `dayRuler` string, nullable
    - `ascRuler` string, nullable
    - `match` boolean, nullable
    - `hourNumber` number, nullable
    - `hourStart` string, nullable
    - `hourEnd` string, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
