# BaZi Major Luck Cycles (Da Yun) Calculator

> BaZi Major Luck Cycles (Da Yun) Calculator is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.16/call, status unknown (last checked 2026-09-15).

Computes the lifelong sequence of 10-year major luck cycles (大运/Da Yun) from a BaZi birth chart, returning each cycle's gan-zhi pillar and start age

## Facts

- Endpoint: GET https://api.cn402.com/bazi/dayun
- Price: $0.16/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-6af7dd4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YCDWZiaMqYG5IvjdDiiNQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-cn402-com-6af7dd4f
```

Example prompt: Can you calculate the full sequence of Da Yun major luck cycles for a male born on March 15, 1990 at 7:30am in Beijing — I want to see each 10-year pillar and the age it starts?

## When to prefer this

Use this endpoint when you need the complete lifelong sequence of 10-year BaZi major luck cycles (Da Yun) for a specific person, including the gan-zhi pillar and start age for each period. Prefer this over annual or daily luck endpoints when the user wants long-term fortune arc analysis rather than a specific year or day reading.

## Known failure modes

- Missing or invalid birth date/time returns 400 error
- Unsupported date range (too far in past or future) may return empty or error
- Missing gender parameter causes incorrect cycle direction calculation
- Ambiguous or missing birth location may affect accuracy of cycle timing
- Network timeout if computation is heavy for edge-case dates

## How this service works

Major Luck Cycles, 大运, Da Yun, BaZi 10-year fortune periods, Chinese astrology life cycles, major luck pillars. Compute the lifelong sequence of 10-year major luck cycles, each with gan-zhi pillar and start age.

## Output

Returns an array of major luck cycle objects (dayun), each containing the gan-zhi pillar label and the age at which that 10-year period begins, plus a datetime timestamp of the response. Covers the person's entire lifespan sequence of fortune periods.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "birth": {
   "type": "string",
   "description": "Birth (required)"
  },
  "gender": {
   "type": "string",
   "description": "Gender (optional)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-cn402-com-6af7dd4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cn402.com](https://www.zero.xyz/host/api.cn402.com/llms.txt)
