# Typosquat & Homoglyph Domain Check

> Typosquat & Homoglyph Domain Check is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Performs offline pure-compute analysis of a hostname to detect typosquatting, homoglyph spoofing, brand-in-subdomain lures, punycode/IDN abuse, and throwaway TLD usage — returning a verdict, nearest brand, edit distance, and reasons.

## Facts

- Endpoint: GET https://payai.agentstools.dev/domain/typosquat
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/typosquat-homoglyph-domain-check-68ee4e90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vnroqoeu5xMXasynDKV2U

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 typosquat-homoglyph-domain-check-68ee4e90
```

Example prompt: Before I click that payment link, can you check if 'paypa1-secure.xyz' is a typosquat or homoglyph spoof of a known brand — I want to know the nearest brand it resembles and why it looks suspicious?

## When to prefer this

Use this endpoint when you need a fast, free-of-network-call, purely computational check on a hostname before transacting with it or clicking a link — especially when you suspect visual spoofing, brand impersonation, or throwaway TLD abuse. Prefer this over full phishing verdict endpoints when you only need the typosquat/homoglyph dimension and want instant, cheap results without any DNS or reputation network lookups.

## Known failure modes

- Missing 'domain', 'host', or 'url' query parameter — returns 400 bad request
- Domain string is malformed or unparseable — may return error or low-confidence result
- Brand not in curated list — legitimate lookalike domains may be missed (false negative)
- Very new or obscure brands not in the curated list will not be detected
- Punycode domains must be passed as-is for IDN detection to work correctly

## How this service works

Pure-compute typosquat and homoglyph check on a hostname: edit-distance to a curated brand list, look-alike character normalization, brand-in-subdomain lures, punycode/IDN, abused free-hosting suffixes and throwaway TLDs. Returns is_typosquat plus the nearest brand, edit distance and reasons. No network — instant, cheap.

## Output

Returns a JSON object containing: is_typosquat (boolean verdict), the nearest matching brand name from the curated list, the edit distance between the input domain and that brand, and a list of reasons explaining the detection (e.g. homoglyph characters found, brand-in-subdomain pattern, punycode/IDN abuse, abused free-hosting suffix, throwaway TLD). No network calls are made — result is computed purely offline.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string",
       "description": "Alternative input: a URL (its host is used)"
      },
      "host": {
       "type": "string",
       "description": "Alternative input: a bare hostname"
      },
      "domain": {
       "type": "string",
       "description": "Domain or hostname to analyze (e.g. example.com)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/typosquat-homoglyph-domain-check-68ee4e90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
