# PennyRail URL Parse / Split URL

> PennyRail URL Parse / Split URL is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses and splits a URL string into its component parts (protocol, host, path, query, etc.)

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.parse--split-url
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-url-parse-split-url-e83bb3b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DRZqnLUd6Znto-8TGsFHr

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 pennyrail-url-parse-split-url-e83bb3b2 -d '<json body>'
```

Example prompt: Can you parse this URL for me and break it down into its components — protocol, host, path, and query params? The URL is https://example.com:8080/products/shoes?color=red&size=10#reviews

## When to prefer this

Use this endpoint when you need a quick, paid micro-service to programmatically decompose a URL string into structured components without implementing your own parsing logic. Particularly useful in agent pipelines where URL structure analysis is needed on-the-fly and a tiny per-call cost is acceptable.

## Known failure modes

- Malformed or non-URL input string may return an error or empty fields
- Missing required 'input' field returns a validation error
- Relative URLs without a protocol may fail to parse correctly
- Payment failure (x402) results in no response if USDC is not available

## How this service works

Machine-readable settlement service

## Output

A structured object containing the parsed components of the input URL, such as protocol, hostname, port, pathname, search/query string, hash fragment, and origin — returned as key-value fields in a JSON object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-url-parse-split-url-e83bb3b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
