chinese

Detect Chinese in text: whether it contains Han characters...

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.

get/api/chinese/detect

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/chinese/detect
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

textstring required

Text.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.