# Domain Normalize API

> Domain Normalize API is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Normalizes and canonicalizes a domain name string into a clean, consistent format for use in coding agent workflows

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/domain/normalize
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/domain-normalize-api-f3c441f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_um-krXY6GsxRQ0yk9uZYR

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-normalize-api-f3c441f8 -d '<json body>'
```

Example prompt: Can you normalize the domain 'https://www.Example.COM/some/path' down to its canonical form so I can use it consistently in my code?

## When to prefer this

Use this endpoint when you need a cheap ($0.01 USDC), reliable, deterministic way to canonicalize domain strings within a coding agent or data pipeline — particularly when operating in an x402/AgentCash micropayment environment. Prefer this over custom regex normalization when consistency and correctness of edge cases matter.

## Known failure modes

- Missing or empty 'domain' field returns an error
- Malformed input that cannot be parsed as a domain may return an error or unexpected normalization
- Network timeout on the Cloudflare Worker edge
- Invalid JSON body returns a parse error

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

Returns a JSON object with a 'data' field containing the normalized domain string (e.g. 'example.com') and a 'meta' field indicating the engine used ('domain-normalize'). The domain is stripped of protocol, www prefix, paths, and casing inconsistencies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "domain": "example.com"
  },
  "meta": {
   "engine": "domain-normalize"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/domain-normalize-api-f3c441f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
