Catalog/ref-unicode

Reference

Unicode character reference (confusables) API

Given a character or codepoint ('A', 'U+0041', '0x41', '65') return codepoint (hex+decimal), Unicode block, general category, UTF-8/UTF-16 encodings, and — the security value-add — CONFUSABLE homoglyph look-alikes used in spoofing/phishing. Answers 'what is U+0041', 'codepoint of é', 'is this a Cyrillic look-alike', 'confusables for the letter a'.

Price$0.01per request
MethodPOST
Route/v1/ref/unicode
StatusLive
MIME typeapplication/json
Rate limit60/minute
CacheNo cache
refunicodecodepointconfusableshomoglyphutf-8charactersecurity
API URLhttps://x402.hexl.dev/v1/ref/unicode
Integration docs
Example request
{
  "query": "A"
}
Example response
{
  "query": "A",
  "char": "A",
  "codepoint": "U+0041",
  "decimal": 65,
  "block": "Basic Latin",
  "category": "Lu (Uppercase Letter)",
  "utf8": [
    "0x41"
  ],
  "utf16": [
    "0x0041"
  ],
  "isAscii": true,
  "confusables": [],
  "hasConfusables": false
}
Input schema
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "examples": [
        "A",
        "U+0041",
        "🚀"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}