# 2s.io Chinese Script Detector

> 2s.io Chinese Script Detector is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Detects whether text contains Han characters, counts them, measures total length, and classifies the script as simplified, traditional, mixed, or han-common

## Facts

- Endpoint: GET https://2s.io/api/chinese/detect
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-chinese-script-detector-05db20e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MH__Rqm5hUucZbxc3-56p

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 2s-io-chinese-script-detector-05db20e2
```

Example prompt: Can you check this text and tell me whether it's simplified Chinese, traditional Chinese, mixed, or neither — and how many Han characters it contains: '這是一個測試，hello world'?

## When to prefer this

Use this endpoint when you need a fast, deterministic, keyless classification of Chinese script type before routing text to a conversion pipeline, or when you need to know whether a string contains Chinese characters at all and in what proportion. Prefer this over LLM-based approaches when you need consistent, rule-based Unicode analysis without API keys.

## Known failure modes

- Empty or missing text parameter returns validation error
- Text exceeding 5000 characters rejected by schema
- Non-UTF-8 encoded input may produce unexpected results
- Text with only punctuation or numbers may return zero Han characters with no script classification
- Payment failure (402) if USDC balance insufficient

## How this service works

Detect Chinese in text: whether it contains Han characters, how many, total length, and a script classification — simplified, traditional, mixed, or han-common (characters identical in both scripts). Deterministic, keyless. Route text to the right pipeline or pick a conversion direction before calling chinese.convert.

## Output

Returns whether the text contains Han characters, the count of Han characters, the total text length, and a script classification label: simplified, traditional, mixed, or han-common (characters shared by both scripts)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 5000,
       "minLength": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-chinese-script-detector-05db20e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
