# Delx Commerce URL Parse

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

Parses a URL string into its constituent components (scheme, host, path, port, query, fragment) without fetching the destination

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-parse?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-parse-2b5053e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R3mr_7OL1ZKdYp-JYN0aB

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-parse-2b5053e9 -d '<json body>'
```

Example prompt: Can you break down this URL into its parts — scheme, host, path, query, and fragment — for me: https://example.com/docs/getting-started?tab=intro#section2?

## When to prefer this

Choose this endpoint when you need fast, reliable, server-side URL decomposition without any network fetch to the target URL — ideal for agents that need to extract URL components programmatically in a pay-per-call model with no signup friction. Prefer this over client-side parsing when you want verifiable, consistent parsing behavior across environments, or when operating in a sandboxed agent context without access to URL parsing libraries.

## Known failure modes

- Invalid or malformed URL input returns an error — URL must conform to URI format
- Missing required 'url' field in the request body causes a validation error
- Non-URI strings (e.g. plain text) will fail URI format validation
- Payment failure (insufficient USDC balance) blocks the request before processing

## How this service works

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

## Output

A JSON object containing parsed URL fields: scheme (e.g. 'https'), host (e.g. 'example.com'), path (e.g. '/docs/getting-started'), port (null if not specified), query (query string), and fragment. The response also includes a schema identifier ('delx/url-parse/v1') for verification. The destination URL is never fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "URL to parse locally. Delx never fetches or validates the destination."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "path": "/docs/getting-started",
  "port": null,
  "query": "",
  "schema": "delx/url-parse/v1",
  "scheme": "https",
  "fragment": ""
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-url-parse-2b5053e9/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)
