# URL Safety API – Phishing & Domain Risk Scorer

> URL Safety API – Phishing & Domain Risk Scorer is a paid API for AI agents from safe.cyberwarex.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Scores a URL or domain for phishing risk using keyless deterministic heuristics (typosquatting, homoglyphs, punycode, suspicious TLDs, raw-IP hosts, deep subdomains, credentials-in-URL) plus RDAP domain-age lookup, returning a 0–100 risk score and a SAFE/SUSPICIOUS/DANGEROUS verdict.

## Facts

- Endpoint: GET https://safe.cyberwarex.com/domain?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-safety-api-phishing-domain-risk-scorer-84d9fae5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JkEsNvTjW5mnrZEtIWg3v

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 url-safety-api-phishing-domain-risk-scorer-84d9fae5
```

Example prompt: Before I open it, can you check if this link is safe — specifically score it for phishing risk: https://secure-paypa1-login.com/verify?user=me

## When to prefer this

Choose this endpoint when an AI agent needs to evaluate an untrusted URL or domain before accessing it, sharing it, or acting on it — especially in phishing-prone contexts like email triage, link preview, user-submitted content moderation, or automated browser agents. Its keyless, deterministic heuristics make it fast and privacy-friendly (no API key required), and the RDAP domain-age check adds signal unavailable from pure heuristics. Prefer it over full-crawl or sandboxed-browsing approaches when you need a lightweight, sub-second risk verdict without fetching the page.

## Known failure modes

- Domain does not resolve — resolves field will be false, DNS records will be empty
- RDAP/WHOIS unavailable for certain TLDs — domain age check may be missing or null
- Newly registered domains may lack RDAP data, reducing scoring accuracy
- Malformed or missing 'domain' query parameter returns an error
- Private/reserved IP ranges passed as host may return minimal data
- Rate limiting or payment failure (x402) returns 402 Payment Required

## How this service works

Pay-per-call URL / phishing safety check for AI agents: score a link for phishing risk from keyless deterministic heuristics (typosquat/homoglyph, punycode, credentials-in-URL, raw-IP host, suspicious TLD, deep subdomains) plus a best-effort RDAP domain-age check. Returns a 0-100 risk score + SAFE/SUSPICIOUS/DANGEROUS verdict.

## Output

Returns a JSON object containing: a 0–100 phishing risk score and a SAFE/SUSPICIOUS/DANGEROUS verdict; the queried host and registrable domain; DNS records (A, AAAA, MX, NS, TXT); WHOIS/RDAP data including creation date, expiry, age in days, registrar, nameservers, and transfer statuses; whether the domain resolves; and whether it has MX records (indicating active mail infrastructure).

## 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": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "Domain or URL (scheme/path optional)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "dns": {
       "type": "object"
      },
      "host": {
       "type": "string"
      },
      "query": {
       "type": "string"
      },
      "whois": {
       "type": "object"
      },
      "has_mx": {
       "type": "boolean"
      },
      "resolves": {
       "type": "boolean"
      },
      "registrable_domain": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dns": {
   "a": [
    "93.184.216.34"
   ],
   "mx": [],
   "ns": [
    "a.iana-servers.net"
   ],
   "txt": [],
   "aaaa": []
  },
  "host": "example.com",
  "query": "example.com",
  "whois": {
   "created": "1995-08-14T04:00:00Z",
   "expires": "2026-08-13T04:00:00Z",
   "age_days": 11300,
   "statuses": [
    "clientTransferProhibited"
   ],
   "registrar": "IANA",
   "nameservers": [
    "a.iana-servers.net"
   ]
  },
  "has_mx": false,
  "resolves": true,
  "registrable_domain": "example.com"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-safety-api-phishing-domain-risk-scorer-84d9fae5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from safe.cyberwarex.com](https://www.zero.xyz/host/safe.cyberwarex.com/llms.txt)
