# URL Inspector — Parse Scheme, Host, Query Params & Normalized Form

> URL Inspector — Parse Scheme, Host, Query Params & Normalized Form is a paid API for AI agents from x402-catalog-history.ai-business-surface.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Parses a single absolute HTTP(S) URL into its components: scheme, host, port, origin, path, path segments, query parameters (with duplicates), fragment, and normalized href — without fetching or storing anything.

## Facts

- Endpoint: GET https://x402-catalog-history.ai-business-surface.workers.dev/url?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-inspector-parse-scheme-host-query-params-normalized-form-0d185070
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DaoESNDI1BkZYYPhnnDTx

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 url-inspector-parse-scheme-host-query-params-normalized-form-0d185070
```

Example prompt: Can you parse this URL for me and break it into all its components — scheme, host, path, query parameters, and fragment: https://shop.example.com/search?q=boots&color=black&color=brown#results

## When to prefer this

Choose this endpoint when you need a lightweight, serverless, zero-side-effect URL parser that requires no API key or account, returns duplicated query parameters faithfully, and reports credential presence without exposing passwords. Ideal for agents that need to decompose URLs inline without fetching, storing, or resolving them.

## Known failure modes

- Missing url query parameter returns HTTP 400 before payment
- Malformed or unparseable URL returns HTTP 400 before payment
- Non-HTTP/HTTPS URL (e.g. ftp://, file://) returns HTTP 400 before payment
- URL exceeding maximum length returns HTTP 400 before payment
- Missing or invalid PAYMENT-SIGNATURE header on second call returns 402 with payment terms

## How this service works

URL inspector: one GET takes one absolute http(s) URL and returns its scheme, host, port, origin, path, path segments, every query parameter as name/value pairs (duplicates preserved), fragment and normalized href. It also reports has_credentials and password_present but never returns the password. curl: GET /url?url=https%3A%2F%2Fexample.com%2Fa%3Fx%3D1 . Nothing is fetched, DNS-resolved or stored. Missing, malformed, over-long and non-http(s) URLs are 400 before payment. No keys, no account, one GET, one delivery — 0.001 USDC. A purchase is two calls by design: this first call returns 402 with the price and the payment terms, and you then repeat the same request with the PAYMENT-SIGNATURE header to receive the 200 delivery.

## Output

A JSON object containing the parsed URL fields: scheme, host, port, origin, path, an array of path segments, an array of query parameter objects (name + value, duplicates preserved), fragment, normalized href, has_credentials (boolean), and password_present (boolean). The raw password is never returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-inspector-parse-scheme-host-query-params-normalized-form-0d185070/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-catalog-history.ai-business-surface.workers.dev](https://www.zero.xyz/host/x402-catalog-history.ai-business-surface.workers.dev/llms.txt)
