# Delx Commerce URL Path Normalizer

> Delx Commerce URL Path Normalizer is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Normalizes a URL string into its canonical components (host, path, normalized URL) without fetching the resource

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-path-normalize?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-path-normalizer-d3655f00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gMRbAeVUX2YxOJNzCt8NA

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 delx-commerce-url-path-normalizer-d3655f00 -d '<json body>'
```

Example prompt: Can you normalize this URL for me — 'https://example.com//a//b?foo=bar' — and give me the clean host, path, and canonical form without actually fetching it?

## When to prefer this

Choose this endpoint when you need a lightweight, no-fetch URL normalization and parsing operation — especially in agent pipelines where you need to canonicalize URLs for deduplication, routing, or validation without making any network requests. It's ideal when you want deterministic, cheap ($0.003 USDC) URL parsing with structured output including host, path, and a validity flag. Prefer it over building custom regex parsing or calling heavier scraping/fetch APIs when you only need URL structure, not page content.

## Known failure modes

- Malformed or unparseable URL returns valid:false with no normalized output
- Missing or empty url field may return a validation error
- Non-string input for url field may cause a 400-class error
- Relative URLs without a host may fail to parse correctly

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing: the extracted host (e.g. 'example.com'), the normalized path (e.g. '/a/b'), a boolean valid flag indicating whether the URL is well-formed, the schema identifier ('delx/util-url-path-normalize/v1'), and the fully normalized URL string (e.g. 'https://example.com/a/b').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to normalize (no fetch is performed)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "path": "/a/b",
  "valid": true,
  "schema": "delx/util-url-path-normalize/v1",
  "normalized": "https://example.com/a/b"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-path-normalizer-d3655f00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
