{"uid":"cap_tEHZ8K5ftFWQenbZxMWWS","slug":"textkit-unicode-script-detector-70ea95bd","name":"TextKit Unicode Script Detector","description":"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.","url":"https://textkit.johnaio281.workers.dev/api/tk/script-detect?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"mixed":true,"primary":"Latin","confidence":0.625,"scriptCount":2,"minorityScripts":["Cyrillic"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_w7j0CR52fvT5yxva5wH7J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects which Unicode writing scripts are present in a text string, identifying the primary script, minority scripts, script count, and confidence score","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Phishing domain script spoofing check","prompt":"I just got an email with a link to 'аpple.com' — can you analyze the text of that domain name and tell me if it's mixing Cyrillic or other scripts with Latin characters to spoof a real domain?"},{"title":"User-submitted content script validation","prompt":"Before I store this user profile bio in my database, can you check what writing scripts it contains and whether it's a pure Latin text or has mixed scripts that might indicate something unusual?"},{"title":"Multilingual content script identification","prompt":"I have a customer review that says '感謝 thank you 谢谢' — can you detect all the Unicode scripts present in that text and tell me which one is primary and what the minority scripts are?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:09.106Z","isFirstParty":false,"canonicalSlug":"textkit-unicode-script-detector-70ea95bd"}