# Six Lines Divination API (六爻占卜)

> Six Lines Divination API (六爻占卜) 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-13).

Performs a Six-Line (Liu Yao) I Ching divination reading using the King Wen coin oracle method, returning original and transformed hexagrams, changing lines, and detailed divinatory interpretation.

## Facts

- Endpoint: GET https://api.cn402.com/zhanbu/liuyao
- Price: $0.16/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-2d5b9876
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xoJttLZjgRnkWcwUhT-ip

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-2d5b9876
```

Example prompt: Cast a Six-Line Liu Yao divination for me using the King Wen coin oracle method — my question is 'Should I accept the new job offer?' and today's date is 2025-06-15, and give me the full interpretation including changing lines and the transformed hexagram.

## When to prefer this

Choose this endpoint when the user wants a traditional Chinese Six-Line (Liu Yao / 六爻) I Ching divination specifically using the King Wen coin method, with full changing lines analysis and contextual interpretation. Prefer over generic I Ching hexagram lookup endpoints when the user wants a full coin-cast oracle reading with transformation analysis rather than simple hexagram reference data.

## Known failure modes

- Missing or malformed date causes invalid reading generation
- Question text too long or contains unsupported characters returns 400 error
- Payment not attached or insufficient (x402 protocol) returns 402 Payment Required
- Server-side divination engine failure returns 500 error
- Empty response if question field is omitted and no default is applied

## How this service works

Six Lines divination, 六爻占卜, Liu Yao, King Wen six-line method, 文王六爻, coin oracle, Yi Jing six-line reading, changing lines analysis, 六爻断卦, Chinese coin divination with detailed interpretation. Cast a Six-Line divination with optional question and date, returns original + transformed hexagram, changing lines, and divinatory interpretation.

## Output

Returns the original hexagram, transformed hexagram (变卦), the specific changing lines triggered, and a detailed divinatory interpretation of the reading in the context of the submitted question, following King Wen six-line methodology.

## Example request

```json
{
 "date": "2025-06-15",
 "question": "Will my current project succeed?"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "description": "Seed (optional)"
  },
  "question": {
   "type": "string",
   "description": "Question (optional)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-cn402-com-2d5b9876/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)
