# Feng Shui Bed Direction Calculator (Ba Zhai / Eight Mansions)

> Feng Shui Bed Direction Calculator (Ba Zhai / Eight Mansions) is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-15).

Calculates the optimal head direction for bed placement based on a person's kua number using the Ba Zhai (Eight Mansions) Feng Shui method

## Facts

- Endpoint: GET https://api.cn402.com/fengshui/bed-direction
- Price: $0.08/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-779904ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vcBK_tuy3b5uAF4QhXoGZ

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-779904ae
```

Example prompt: Using Ba Zhai Feng Shui, what's the best direction to place my bed head — my kua number is 7?

## When to prefer this

Use this endpoint when a user wants Feng Shui-based bed placement advice derived from their personal kua number using the traditional Ba Zhai (Eight Mansions) method, especially for Chinese cultural or interior layout contexts. Prefer over generic interior design APIs when the request is specifically about auspicious sleeping direction per Chinese metaphysical tradition.

## Known failure modes

- Invalid or out-of-range kua number (kua must be 1–9, excluding 5) returns an error
- Missing required input parameters returns a 400 bad request
- Payment not included or invalid x402 payment header returns 402 Payment Required
- Server error returns 500 with no direction data

## How this service works

Lucky bed direction, 床位方向, Feng Shui bed placement, bedroom direction, sleeping direction, where to place bed, lucky head direction, 卧床方向, Chinese bedroom layout. Calculate the optimal direction to place a bed (head direction) for a person, based on their kua number using Ba Zhai (Eight Mansions) method.

## Output

Returns the auspicious head direction(s) for bed placement (e.g. north, southwest) along with Ba Zhai reasoning based on the person's kua number, indicating which cardinal or intercardinal directions are lucky or unlucky for sleeping orientation.

## Request schema (JSON Schema)

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

## More

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