{"uid":"cap_MH__Rqm5hUucZbxc3-56p","slug":"2s-io-chinese-script-detector-05db20e2","name":"2s.io Chinese Script Detector","description":"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.","url":"https://2s.io/api/chinese/detect","method":"GET","headers":{},"bodySchema":{"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}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dDS0nRtLv9zQu7WXhU6G3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects whether text contains Han characters, counts them, measures total length, and classifies the script as simplified, traditional, mixed, or han-common","exampleAgentPrompt":"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'?","exampleUseCases":null,"resultDescription":"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)","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:11:08.361Z","isFirstParty":false}