---
title: "Hour Pillar"
method: POST
path: "/bazi/hour-pillar"
tags: ["BaZi (Four Pillars)"]
---

# Hour Pillar

`POST /bazi/hour-pillar`

Hour pillar via 五鼠遁 (Five-Rats-Escape) day-stem → hour-stem table. The Zi hour opens the day at 23:00 local time.

## Request body

- BaziHourInput
  - `date` string, required
  - `time` string, required
  - `timezoneOffset` number

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `date` string, nullable
    - `time` string, nullable
    - `timezoneOffset` number, nullable
    - `localHour` number, nullable
    - `cstHour` number, nullable
    - `dayPillar` object, nullable
      - `stem` string, nullable
      - `branch` string, nullable
      - `pillar` string, nullable
    - `hourPillar` object, nullable
      - `stem` string, nullable
      - `branch` string, nullable
      - `pillar` string, nullable
      - `animal` string, nullable
      - `stemElement` string, nullable
      - `branchElement` string, nullable
      - `yin` boolean, nullable
    - `methodology` string, nullable
    - `disclaimer` string, nullable

## Other responses

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

## Changes

- **2026-08-24** `8ab5a768b521` — 13 info
  - added the optional property `data/cstHour` to the response with the `200` status
  - added the optional property `data/date` to the response with the `200` status
  - added the optional property `data/dayPillar/branch` to the response with the `200` status
  - added the optional property `data/dayPillar/pillar` to the response with the `200` status
  - …9 more
- **2026-08-22** `5a17388652f3` — 2 breaking, 1 info
  - added the new required request property `date`
  - added the new required request property `time`
  - added the new optional request property `timezoneOffset`

[Change history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/bazi/hour-pillar/post.md)

---

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