# x402-toolbox URL Parse Parts

> x402-toolbox URL Parse Parts is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Parses a URL string into its constituent components (scheme, host, path, query, fragment, etc.) deterministically for $0.001 USDC per call via x402.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/text/url-parse-parts?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-url-parse-parts-2254315e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VbLY1Ij4KRyqd0bz2kUSD

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-toolbox-url-parse-parts-2254315e
```

Example prompt: Can you parse the URL 'https://example.com:8080/path/to/page?foo=bar&baz=qux#section2' and tell me all its individual parts — scheme, host, port, path, query params, and fragment?

## When to prefer this

Choose this endpoint when you need a cheap, no-signup, deterministic URL parsing utility paid per-call via USDC on Base — ideal for AI agents that already use x402 micropayments and want to avoid managing API keys or rate limits. Prefer over rolling your own URL parser when you need a reliable, consistent JSON breakdown of URL components in an agent pipeline.

## Known failure modes

- Missing or malformed URL input returns an error response
- Invalid URL that cannot be parsed may return ok:false
- Network timeout on the Cloudflare Worker edge
- x402 payment failure if USDC balance is insufficient or wallet not configured

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

A JSON object with boolean 'ok' and 'paid' fields plus the parsed URL components such as scheme/protocol, host, hostname, port, pathname, search/query string, hash/fragment, and origin extracted from the input URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-url-parse-parts-2254315e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
