# Qi Men Dun Jia Chart API

> Qi Men Dun Jia Chart API is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.32/call, status unknown (last checked 2026-09-14).

Computes the Qi Men Dun Jia (奇门遁甲) 9-palace divination chart with stars, doors, gods, and stems for a given datetime, used for Chinese strategic decision-making

## Facts

- Endpoint: GET https://api.cn402.com/zhanbu/qimen
- Price: $0.32/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-4abf6c9c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lRTJgrbkpBIefBqvGencS

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-4abf6c9c
```

Example prompt: Generate a Qi Men Dun Jia (奇门遁甲) 9-palace chart for tomorrow, June 15th at 9am — I want to see all the stars, doors, and gods assigned to each palace so I can make a strategic decision.

## When to prefer this

Use this endpoint when you need a full Qi Men Dun Jia 9-palace chart for strategic or divination purposes, especially when the user references Chinese military divination, qimen oracle, 奇门遁甲, or needs the complete palace-level breakdown of stars/doors/gods for a specific datetime.

## Known failure modes

- Invalid or malformed datetime input returns an error
- Missing datetime parameter causes request failure
- Datetime out of supported historical/future range may return error
- Payment not included or insufficient USDC causes 402 payment required response

## How this service works

Qi Men Dun Jia, 奇门遁甲, military divination, 9-palace 3-pan oracle, Chinese strategy divination, heaven door earth door human door, 八门九星八神, 8 doors 9 stars 8 gods. Compute the Qi Men Dun Jia chart (9-palace with stars/doors/gods) for a given datetime, used for strategic decision making.

## Output

Returns an array of 9 palaces, each containing its assigned star (九星), door (八门), god (八神), and heavenly stem (干), along with the datetime used for the calculation — forming the complete Qi Men Dun Jia oracle grid for that moment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "datetime": {
   "type": "string",
   "description": "Datetime (optional)"
  }
 }
}
```

## More

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