# Delx URL Parts

> Delx 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).

Splits a URL into its constituent parts: scheme, netloc, path, query, and fragment — no network access required.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/url-parts
- 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-url-parts-9c1a5fb8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kPi--tEs7RgVp0byYcSqR

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-url-parts-9c1a5fb8 -d '<json body>'
```

Example prompt: Can you split this URL into its parts — scheme, host, path, query, and fragment — without fetching it? Here's the URL: https://example.com/search?q=hello#results

## When to prefer this

Choose this endpoint when you need to decompose a URL into its components without making any network request or requiring API keys. It is ideal for agent workflows that hold URLs as strings and need to route, filter, or inspect them based on their structure. Prefer it over regex-based parsing for reliability, and over full page-fetch endpoints when no content retrieval is needed.

## Known failure modes

- Malformed or empty URL input may result in empty component fields or ok=false
- Non-HTTP schemes (e.g. ftp://, mailto:) may parse with limited field population
- Payment failure via x402 protocol results in 402 response and no result
- Missing 'url' field in request body returns a validation error

## How this service works

Split a URL into scheme/netloc/path/query/fragment. Call when you inspect agent-held URLs without network access. Returns URL parts and ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object with the parsed URL components: scheme (e.g. 'https'), netloc (e.g. 'example.com'), path (e.g. '/search'), query (e.g. 'q=hello'), fragment (e.g. 'results'), and an 'ok' boolean indicating successful parsing. No external network calls are made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Input field: url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "path": "/x",
  "query": "y=1",
  "netloc": "api.delx.ai",
  "schema": "delx/util-url-parts/v1",
  "scheme": "https",
  "fragment": "z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-url-parts-9c1a5fb8/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)
