# Delx Parse URL Parts

> Delx Parse URL Parts is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Parses a URL string into its constituent parts (scheme, host, path, query, fragment) without performing any network I/O

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/url-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-parse-url-parts-c25929d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ef8co5KAUeLB9fBtYS05p

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-parse-url-parts-c25929d4 -d '<json body>'
```

Example prompt: Can you parse this URL for me — https://example.com:8080/search?q=hello&page=2#results — and tell me the host, path, query params, and fragment?

## When to prefer this

Choose this endpoint when you need to decompose a URL into structured parts (host, path, query, fragment) without any network fetch or DNS lookup. Ideal for pipelines that process URLs as data — logging, routing, analytics, validation — where deterministic local parsing is required and no external HTTP call should be made. Prefer it over regex-based parsing for correctness, and over full HTTP clients when you specifically do not want to contact the target server.

## Known failure modes

- Invalid or malformed URL input returns a structured validation error (not billed)
- Missing required 'url' field returns a validation error
- Relative URLs without a scheme may fail to parse correctly
- Extremely long URLs may be rejected

## How this service works

Parse a URL into parts. Call when splitting host, path, query, and fragment without fetching the URL. Returns structured URL parts; never performs network I/O. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

A structured JSON object containing the parsed components of the submitted URL — including scheme, host, port (if present), pathname, query string (and individual query parameters), and fragment — extracted entirely locally without any network request to the target URL.

## 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-parse-url-parts-c25929d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
