# x402 URL Bulk Normalize

> x402 URL Bulk Normalize is a paid API for AI agents from x402-utils.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-10-25).

Normalizes, deduplicates, and validates a batch of URLs by standardizing scheme casing, removing default ports, sorting query parameters, and optionally stripping URL fragments.

## Facts

- Endpoint: POST https://x402-utils.558686.xyz/v1/tools/url-bulk-normalize?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-url-bulk-normalize-fd3795d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hiZxC9383rLUQpKE3xHQx

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 x402-url-bulk-normalize-fd3795d7 -d '<json body>'
```

Example prompt: Normalize and deduplicate this list of URLs — lowercase the scheme and host, strip default ports, sort query params, and remove fragments: ['HTTPS://Example.COM:443/b?z=2&a=1#frag', 'http://example.com/b?a=1&z=2', 'ftp://Bad URL']

## When to prefer this

Choose this endpoint when you need deterministic, cheap, repeatable URL normalization at scale — especially when deduplication and fragment stripping are needed in a single pass. Prefer it over building custom regex-based normalization when you need consistent canonical forms (sorted query params, lowercased scheme/host, default port removal) without spinning up an LLM. It's ideal as a preprocessing step before URL comparison, hashing, or database storage.

## Known failure modes

- Malformed URLs that cannot be parsed are counted in invalidCount and excluded from normalizedUrls rather than causing a request failure
- Empty urls array returns an empty normalizedUrls with zero counts
- Non-string items in the urls array may be rejected or counted as invalid
- Payment failure (402) if x402 micropayment is not properly attached
- Rate limiting or server errors (5xx) on the remote host

## How this service works

A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.

## Output

Returns a JSON object with a normalizedUrls array of canonical URL strings, a per-item breakdown, an invalidCount of URLs that could not be parsed, and a duplicateCount of URLs removed when deduplication is enabled.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "url-bulk-normalize",
  "input": {
   "urls": [
    "HTTPS://Example.COM:443/b?z=2&a=1#frag"
   ],
   "dedupe": true,
   "stripFragment": true
  },
  "route": "/v1/tools/url-bulk-normalize",
  "result": {
   "items": [],
   "invalidCount": 1,
   "duplicateCount": 1,
   "normalizedUrls": []
  },
  "project": "x402-utility-tools",
  "deterministic": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-url-bulk-normalize-fd3795d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-utils.558686.xyz](https://www.zero.xyz/host/x402-utils.558686.xyz/llms.txt)
