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

# Year Pillar

`POST /bazi/year-pillar`

Year stem + branch + animal + element with yin/yang.

## Request body

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

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `yearPillar` object, nullable
      - `stem` string, nullable
      - `branch` string, nullable
      - `pillar` string, nullable
      - `animal` string, nullable
      - `stemElement` string, nullable
      - `branchElement` string, nullable
      - `yin` boolean, 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/529d7d36d7d6/schema)
