{"uid":"cap_v63jt1niBIrnnPminDU6E","slug":"textkit-homoglyph-fold-413c5716","name":"TextKit Homoglyph Fold","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/homoglyph-fold?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 possibly containing lookalike characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"output":"paypal.com","changed":1,"suspicious":true}},"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_tKWJLjr9DlUthq5fe82td","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":"Folds lookalike (homoglyph) Unicode characters in text to their ASCII equivalents and flags the result as suspicious if spoofed characters were detected","exampleAgentPrompt":"Check if this domain name uses any lookalike or spoofed characters that could be impersonating a real site: 'pаypal.com' — fold any homoglyphs and tell me if it looks suspicious.","exampleUseCases":[{"title":"Phishing link detector in email pipeline","prompt":"I just received an email with a link to 'аmazon.com' — can you check if that domain uses any homoglyph or Unicode spoofing tricks to impersonate Amazon?"},{"title":"User-submitted URL trust check","prompt":"A user on our platform submitted the URL 'paypaI.com' — run homoglyph folding on it and tell me if any characters were swapped to lookalikes and whether it looks suspicious."},{"title":"Brand protection monitoring","prompt":"We need to check if 'microsоft.com' contains any Cyrillic or other lookalike characters that could be used to spoof our brand domain — fold it and flag anything suspicious."}],"resultDescription":"A JSON object containing: 'output' (the folded/normalized text with homoglyphs replaced by ASCII equivalents), 'changed' (integer, 1 if any characters were substituted, 0 otherwise), and 'suspicious' (boolean, true if lookalike characters were detected indicating possible spoofing).","failureModes":["Missing required 'text' query parameter returns an error","Non-string or empty input may produce unexpected behavior","Payment failure via x402 if insufficient USDC balance on Base","Very long strings may time out on the Cloudflare Worker runtime","False negatives possible for uncommon or newly catalogued homoglyph sets"],"whenToPreferThis":"Use this endpoint when you need to detect Unicode homograph/homoglyph attacks in domains, URLs, or usernames — especially for phishing detection, brand protection, or trust-and-safety pipelines. Prefer this over generic Unicode normalization when you specifically need spoofing detection with a 'suspicious' flag, not just NFC/NFD normalization. Ideal for AI agents that need pay-per-call, no-signup security enrichment without maintaining their own homoglyph tables.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:51.956Z","isFirstParty":false,"canonicalSlug":"textkit-homoglyph-fold-413c5716"}