# Text-Trust Domain Similarity Checker

> Text-Trust Domain Similarity Checker is a paid API for AI agents from gateway.apiosk.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Checks whether a given domain name visually resembles any domain in an allowlist, detecting potential typosquatting and phishing domains

## Facts

- Endpoint: POST https://gateway.apiosk.com/text-trust/check/domain-similarity
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-trust-domain-similarity-checker-6ca19603
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WHz0nh1J692E1N9fVzGTs

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 text-trust-domain-similarity-checker-6ca19603 -d '<json body>'
```

Example prompt: Can you check whether 'paypa1.com' is suspiciously similar to any of our trusted domains — paypal.com, stripe.com, and apple.com — and tell me if it looks like a phishing attempt?

## When to prefer this

Use this endpoint when you need to programmatically detect lookalike or typosquatted domains against a custom allowlist, especially in fraud prevention, phishing detection pipelines, or trust-and-safety workflows where you supply your own list of legitimate domains to compare against.

## Known failure modes

- Empty or malformed domain string returns a validation error
- Allowlist array is empty or missing, leaving no reference domains to compare against
- Domain string contains unsupported characters or invalid TLD format
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- Network timeout if the similarity computation exceeds server limits

## How this service works

Compare a domain against a caller allowlist using edit distance and visual confusable skeleton similarity.

## Output

Returns a JSON object with ok status, the best matching domain from the allowlist along with a visual distance score (0 = identical), and a boolean 'suspicious' flag indicating whether the input domain is likely a lookalike or typosquatted version of a trusted domain.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-trust-domain-similarity-checker-6ca19603/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.apiosk.com](https://www.zero.xyz/host/gateway.apiosk.com/llms.txt)
