Text
Confusable / homoglyph spoof detector API
Reduce text to its Unicode confusable 'skeleton' (mapping Cyrillic/Greek look-alikes, full-width forms and digit/letter swaps to Latin prototypes), report the scripts present, whether it mixes scripts, and a spoof flag — the IDN-homograph / lookalike-domain attack signal — plus an optional comparison to a target string. Answers 'is this a homoglyph spoof', 'does аpple.com spoof apple.com', 'is this domain a lookalike', 'what scripts are in this string'.
Price$0.01per request
MethodPOST
Route/v1/text/confusables
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
textconfusableshomoglyphspoofunicodeidnlookalikesecurity
API URL
Integration docshttps://x402.hexl.dev/v1/text/confusablesExample request
{
"text": "аpple",
"compareTo": "apple"
}Example response
{
"text": "аpple",
"skeleton": "apple",
"scripts": [
"Cyrillic",
"Latin"
],
"mixedScript": true,
"confusableCount": 1,
"isSpoof": true,
"compareTo": "apple",
"confusableWith": true,
"compareToSkeleton": "apple"
}Input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"examples": [
"аpple"
]
},
"compareTo": {
"type": "string",
"examples": [
"apple"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}