# Homoglyph Check

> Homoglyph Check is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-01).

Scans text, domains, emails, or usernames for homoglyph substitutions, mixed scripts, and invisible characters that could indicate spoofing or phishing

## Facts

- Endpoint: POST https://x402.agentutility.ai/homoglyph-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/homoglyph-check-79e3e233
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CQThf7Rz3iYn58525fvDR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability homoglyph-check-79e3e233 -d '<json body>'
```

Example prompt: Can you check if the domain 'аpple.com' is using any lookalike or homoglyph characters that could make it a phishing site impersonating a real brand?

## When to prefer this

Use this endpoint when you need to programmatically detect unicode-based impersonation attacks in domains, emails, or usernames — particularly homoglyph substitutions (e.g. Cyrillic 'а' for Latin 'a'), mixed-script combinations, and invisible characters. Prefer this over generic text analysis tools when security context demands character-level unicode inspection with structured findings and risk scoring.

## Known failure modes

- Input text exceeds ~10k character limit — truncation or rejection
- Non-UTF-8 encoded input may cause parsing errors
- Empty text field returns validation error
- Legitimate internationalized domain names (IDNs) may produce false positives for non-Latin scripts

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing: normalized ASCII version of the text, a risk_score (0-100), risk_level (e.g. 'high'), boolean flags for is_suspicious, ascii_only, and has_mixed_scripts, counts of homoglyphs and invisible characters, per-script block counts (e.g. Cyrillic), and detailed homoglyph_findings arrays listing each suspicious character's Unicode codepoint, its position, its Unicode block, and which ASCII character it impersonates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input string to scan (domain, email, username, or arbitrary text). UTF-8, max ~10k chars."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      },
      "ascii_only": {
       "type": "boolean"
      },
      "normalized": {
       "type": "string"
      },
      "risk_level": {
       "type": "string"
      },
      "risk_score": {
       "type": "integer"
      },
      "text_length": {
       "type": "integer"
      },
      "block_counts": {
       "type": "object",
       "properties": {
        "Cyrillic": {
         "type": "integer"
        }
       }
      },
      "is_suspicious": {
       "type": "boolean"
      },
      "homoglyph_count": {
       "type": "integer"
      },
      "invisible_count": {
       "type": "integer"
      },
      "has_mixed_scripts": {
       "type": "boolean"
      },
      "homoglyph_findings": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "char": {
          "type": "string"
         },
         "block": {
          "type": "string"
         },
         "index": {
          "type": "integer"
         },
         "codepoint": {
          "type": "string"
         },
         "impersonates": {
          "type": "string"
         }
        }
       }
      },
      "invisible_findings": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "аpple.com",
  "ascii_only": false,
  "normalized": "apple.com",
  "risk_level": "high",
  "risk_score": 80,
  "text_length": 9,
  "block_counts": {
   "Cyrillic": 1
  },
  "is_suspicious": true,
  "homoglyph_count": 1,
  "invisible_count": 0,
  "has_mixed_scripts": true,
  "homoglyph_findings": [
   {
    "char": "а",
    "block": "Cyrillic",
    "index": 0,
    "codepoint": "U+0430",
    "impersonates": "a"
   }
  ],
  "invisible_findings": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/homoglyph-check-79e3e233/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
