# Domain Parts Parser (x402-zoo.lolagent.workers.dev)

> Domain Parts Parser (x402-zoo.lolagent.workers.dev) is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a URL or hostname into its constituent parts — subdomain, registrable domain, and public suffix — using a bundled common-suffix table.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/domain-parts
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-parts-parser-x402-zoo-lolagent-workers-dev-326015b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XZxMCwNkZx9zwk_2hS2kH

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-parts-parser-x402-zoo-lolagent-workers-dev-326015b4
```

Example prompt: Can you parse 'blog.example.co.uk' into its subdomain, registrable domain, and public suffix?

## When to prefer this

Use this endpoint when you need reliable, suffix-table-aware decomposition of a domain or URL into subdomain, registrable domain, and public suffix — especially for multi-level TLDs like '.co.uk' or '.com.au' that naive string splitting would mishandle. Prefer this over simple string splitting or regex when correctness across international and ccTLD domains matters.

## Known failure modes

- Missing both 'url' and 'hostname' query parameters returns an error
- Malformed or unparseable URL may return an error or empty fields
- Unknown or very new TLDs not in the bundled suffix table may be misclassified
- IP addresses passed as hostnames may not parse correctly into domain parts

## How this service works

Parse a URL or hostname into subdomain, registrable domain and suffix using a bundled common-suffix table.

## Output

Returns the parsed components of the provided URL or hostname: the subdomain (e.g. 'blog'), the registrable domain (e.g. 'example'), and the public suffix (e.g. 'co.uk'), derived using a bundled common-suffix table that handles multi-level TLDs correctly.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "url": {
       "type": "string"
      },
      "hostname": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-parts-parser-x402-zoo-lolagent-workers-dev-326015b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
