# TextKit Unicode Script Detector

> TextKit Unicode Script Detector is a paid API for AI agents from textkit.johnaio281.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Detects which Unicode writing scripts are present in a text string, identifying the primary script, minority scripts, script count, and confidence score

## Facts

- Endpoint: GET https://textkit.johnaio281.workers.dev/api/tk/script-detect?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/textkit-unicode-script-detector-70ea95bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tEHZ8K5ftFWQenbZxMWWS

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 textkit-unicode-script-detector-70ea95bd
```

Example prompt: Can you check what Unicode scripts are present in this string — 'pаypal.com' — and tell me if it's mixing Latin with Cyrillic or anything else suspicious?

## When to prefer this

Use this endpoint when you need to detect Unicode script mixing in text — especially for security use cases like homoglyph/IDN spoofing detection, or for multilingual content classification where you need to know the primary writing system. Prefer this over generic language detection when the question is about Unicode script categories (Latin, Cyrillic, Han, Arabic, etc.) rather than natural language identity. No API key or signup required; pay per call in USDC on Base.

## Known failure modes

- Missing `text` query parameter returns a 400 error
- Empty string may return low confidence or null primary script
- Payment failure via x402 protocol returns 402 Payment Required
- Very short strings (1–2 chars) may yield low confidence scores
- Strings with only punctuation or numbers may not resolve to a named script

## How this service works

General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

Returns a JSON object with: `mixed` (boolean, whether multiple scripts are present), `primary` (string, the dominant script name e.g. 'Latin', 'Cyrillic', 'Han'), `confidence` (float 0–1, how dominant the primary script is), `scriptCount` (integer, number of distinct scripts found), and `minorityScripts` (array of script name strings for non-primary scripts detected).

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "text to analyse"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mixed": true,
  "primary": "Latin",
  "confidence": 0.625,
  "scriptCount": 2,
  "minorityScripts": [
   "Cyrillic"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/textkit-unicode-script-detector-70ea95bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from textkit.johnaio281.workers.dev](https://www.zero.xyz/host/textkit.johnaio281.workers.dev/llms.txt)
