# URL Parser

> URL Parser is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Parses a URL into its components: scheme, host, port, path segments, query parameters, fragment, origin, registrable domain, and normalized form, plus flags for secure/IP/localhost.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/url-parse
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-parser-c22a6d39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dMNc7jGhFyiLaDuwAmhEK

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-parser-c22a6d39
```

Example prompt: Can you parse the URL 'https://shop.example.com:8080/products/shoes?color=red&size=10#reviews' and tell me its scheme, host, port, path segments, query parameters, fragment, registrable domain, and whether it's secure?

## When to prefer this

Use this endpoint when you need a thorough, structured decomposition of a URL including multi-valued query parameters, registrable domain extraction, and security/IP/localhost flags — especially when normalization is also needed. Prefer this over manual string splitting when correctness and edge-case handling (ports, fragments, IP detection) matter.

## Known failure modes

- Malformed or unparseable URL returns an error
- Missing input URL parameter causes request failure
- URL with unusual encoding may produce unexpected path segment breakdown
- Private/internal URLs (e.g. file://) may not be fully supported

## How this service works

URL parser: scheme, host, port, path segments, query parameters (multi-valued), fragment, origin, registrable domain, whether it is secure/IP/localhost, and a normalised form. $0.01 per URL.

## Output

A structured breakdown of the URL including: scheme, host, port, path segments (as an array), query parameters (multi-valued), fragment, origin, registrable domain, boolean flags for whether the URL is secure (HTTPS), an IP address, or localhost, and a normalized canonical form of the URL.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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-parser-c22a6d39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
