{"uid":"cap_cxDbrCnoYcJXHciRkVChO","slug":"saylor-innovations-unicode-inspect-4eb7502e","name":"Saylor Innovations Unicode Inspect","description":"Inspect a string by code point - UTF-8 bytes, category, script, normalization changes, and warnings for zero-width, bidi and mixed-script lookalike text","url":"https://saylorinnovations.com/api/text/unicode-inspect?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 inspect, up to 200 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["characters","warnings","inspected"],"properties":{"source":{"type":"string","description":"Data source the values come from"},"scripts":{"type":"array","description":"Writing systems present"},"warnings":{"type":"array","description":"Risks found: invisible, bidirectional or mixed-script characters"},"inspected":{"type":"array","items":{"type":"object","properties":{"char":{"type":["string","null"],"description":"The character, null for invisible ones"},"utf8":{"type":["string","null"],"description":"UTF-8 bytes in hex"},"script":{"type":["string","null"],"description":"Unicode script"},"decimal":{"type":["number","null"],"description":"Decimal code point"},"category":{"description":"Category"},"invisible":{"type":["boolean","null"],"description":"True when the character is invisible"},"code_point":{"description":"Code point"},"utf16_units":{"description":"Utf16 units"},"bidi_control":{"description":"Bidi control"},"category_name":{"description":"Category name"}}},"description":"Per-character details: code point, UTF-8 bytes, category, script and flags"},"ascii_only":{"type":"boolean","description":"Ascii only"},"characters":{"type":"number","description":"Number of Unicode characters"},"utf8_bytes":{"type":"number","description":"Utf8, in bytes"},"utf16_units":{"type":"number","description":"Utf16 units"},"has_invisible":{"type":"boolean","description":"True when this has invisible"},"mixed_scripts":{"type":"boolean","description":"Mixed scripts"},"normalization":{"type":"object","description":"For NFC, NFD, NFKC and NFKD: code point count and whether the form differs"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N3q0UPLcBpNkNQO4Dv2_I","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a string character-by-character, returning UTF-8 bytes, Unicode category, script, and security warnings for zero-width, bidi, and mixed-script lookalike characters","exampleAgentPrompt":"Can you inspect the string 'pаypal.com' character by character and tell me if it contains any Cyrillic lookalikes, invisible characters, or bidi tricks?","exampleUseCases":[{"title":"Homoglyph spoofing detection","prompt":"Check this domain name 'аpple.com' — I want to know if any of the characters are actually Cyrillic or other non-ASCII lookalikes that could be impersonating a real brand."},{"title":"Zero-width character audit","prompt":"Someone sent me this message and I suspect it has hidden zero-width characters embedded in it: 'Hello​World' — can you inspect it code point by code point and flag anything invisible or suspicious?"},{"title":"Bidi override security check","prompt":"I need to verify this filename 'report\rlp.exe' doesn't contain any Unicode bidirectional control characters that could hide its true extension — can you run a full Unicode inspection on it?"}],"resultDescription":"A JSON object containing: total character count, UTF-8 byte count, UTF-16 unit count, an ASCII-only flag, a list of detected scripts, an array of per-character details (code point, UTF-8 hex bytes, Unicode category and category name, script, decimal value, invisible flag, bidi control flag), and a warnings array flagging any zero-width characters, bidirectional controls, or mixed-script lookalike risks.","failureModes":["Text exceeds 200 characters — request will be rejected or truncated","Malformed query parameter — missing 'text' param returns an error","Non-UTF-8 encoded input may produce unexpected results","Empty string input may return minimal or empty character array"],"whenToPreferThis":"Use this endpoint when you need per-character Unicode forensics — specifically when auditing strings for security risks like homoglyph/lookalike spoofing, invisible zero-width characters, or bidirectional text attacks. It is ideal for input validation pipelines, security tooling, domain name verification, or any scenario where you need the raw Unicode metadata (code point, category, script, UTF-8 bytes) for each character in a string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:39.209Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-unicode-inspect-4eb7502e"}