# Chinese Character Stroke Count API (笔画数)

> Chinese Character Stroke Count API (笔画数) is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Returns the total number of strokes for each Chinese (Hanzi/Kanji) character in a given input

## Facts

- Endpoint: GET https://api.cn402.com/hanzi/bihua
- Price: $0.008/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-d8e603e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_umi13p9srsqGHncb-JeVE

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-d8e603e4
```

Example prompt: How many strokes does each character in 中文汉字 have? I need the stroke count for each one individually.

## When to prefer this

Choose this endpoint when you need to look up the stroke count of individual Chinese/Hanzi/Kanji characters — especially in handwriting apps, character difficulty grading, Hanzi learning platforms, or any workflow that needs to quantify writing complexity of CJK characters. Preferred over general Chinese NLP APIs because it is specialized purely for stroke counting.

## Known failure modes

- Non-Chinese characters or unsupported Unicode ranges may return null or error per character
- Empty input string returns an error or empty result
- Characters outside the CJK Unicode block may not be recognized
- Network or payment (x402) failure results in no response

## How this service works

Chinese stroke count, hanzi strokes, 笔画, 笔画数, kanji stroke count, Chinese character total strokes, 汉字笔画数, Hanzi stroke counter. Get stroke count for each Chinese character. For AI agents handling Chinese handwriting apps, Hanzi learning, character grading. Accepts payment on Base or Solana — either network works.

## Output

A breakdown of stroke counts per Chinese character — e.g. for input '中文', returns stroke counts like {中: 4, 文: 4}. Useful for handwriting apps, character difficulty grading, and Hanzi learning tools.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "type": "string",
   "description": "Optional response format hint"
  }
 }
}
```

## More

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