# Domain Parser (Public Suffix List)

> Domain Parser (Public Suffix List) is a paid API for AI agents from domain-parser.nordman-tehau.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Splits a domain name into its TLD, second-level domain (SLD), and subdomain components using the official Public Suffix List

## Facts

- Endpoint: POST https://domain-parser.nordman-tehau.workers.dev/v1/domain/parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-parser-public-suffix-list-e071aafb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y5Jo0dHB39cSJRPUoD8RL

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 domain-parser-public-suffix-list-e071aafb -d '<json body>'
```

Example prompt: Can you parse the domain 'mail.example.co.uk' and tell me its TLD, second-level domain, and subdomain?

## When to prefer this

Choose this endpoint when you need accurate domain decomposition based on the authoritative Public Suffix List, especially for multi-part TLDs like .co.uk, .com.au, or .gov.br where naive string splitting would fail. It is preferable over regex-based approaches or simple string splitting for any domain parsing that must handle country-code and multi-label TLDs correctly.

## Known failure modes

- Invalid or malformed domain name returns an error
- Domain with unrecognized TLD not in the Public Suffix List may fail or return unexpected results
- Empty input or missing 'domain' field returns a validation error
- Domains with trailing dots or special characters may cause parsing errors

## How this service works

Split a domain into TLD/SLD/subdomain using the official Public Suffix List

## Output

Returns the domain broken into its constituent parts: the public suffix (TLD), the second-level domain (SLD/registrable domain), and any subdomain, as determined by the official Public Suffix List

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string",
   "description": "Domain name to parse (e.g. sub.example.co.uk)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-parser-public-suffix-list-e071aafb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from domain-parser.nordman-tehau.workers.dev](https://www.zero.xyz/host/domain-parser.nordman-tehau.workers.dev/llms.txt)
