---
title: "Luck Pillars (Da Yun)"
method: POST
path: "/bazi/luck-pillars"
tags: ["BaZi (Four Pillars)"]
---

# Luck Pillars (Da Yun)

`POST /bazi/luck-pillars`

10-year luck pillars sequence. Direction by gender + year-stem polarity per Ziping canon.

## Request body

- BaziLuckPillarsInput
  - `date` string, required
  - `time` string
  - `timezoneOffset` number
  - `gender` 'male' | 'female', required
  - `count` integer

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `date` string, nullable
    - `gender` string, nullable
    - `direction` string, nullable
    - `count` number, nullable
    - `startAge` object, nullable
      - `years` number, nullable
      - `months` number, nullable
    - `startReference` object, nullable
      - `term` string, nullable
      - `pinyin` string, nullable
      - `beijing` string, nullable
      - `days` number, nullable
    - `luckPillars` object[], nullable
      - `pillar` string, nullable
      - `stem` string, nullable
      - `branch` string, nullable
      - `element` string, nullable
      - `ageStart` number, nullable
    - `methodology` string, nullable
    - `source` string, nullable
    - `disclaimer` string, nullable

## Other responses

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

## Changes

- **2026-08-24** `8ab5a768b521` — 2 breaking, 13 info
  - the response property `data/luckPillars/items/` became nullable for the status `200`
  - the `data/luckPillars/items/` response's property type changed from no type to `object` for status `200`
  - added the optional property `data/count` to the response with the `200` status
  - added the optional property `data/date` to the response with the `200` status
  - …11 more
- **2026-08-22** `5a17388652f3` — 2 breaking, 3 info
  - added the new required request property `date`
  - added the new required request property `gender`
  - added the new optional request property `count`
  - added the new optional request property `time`
  - …1 more

[Change history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/bazi/luck-pillars/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)
