# PennyRail URL Parse & Metadata Extraction

> PennyRail URL Parse & Metadata Extraction 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 a URL string and extracts structured metadata components such as protocol, host, path, query parameters, and fragment

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.parse--url-metadata
- 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-metadata-extraction-427e2cb3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IpTqYIdX9lMWwHOD4gu68

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-metadata-extraction-427e2cb3 -d '<json body>'
```

Example prompt: Parse this URL for me and extract all its components — protocol, host, path, and query parameters: https://example.com/products?category=shoes&size=10#reviews

## When to prefer this

Use this endpoint when you need a quick, paid micro-service to programmatically parse and decompose a URL string into structured components without writing your own parsing logic. Particularly useful in agent workflows where URL analysis is a single step in a larger pipeline and you want a consistent, machine-readable JSON output via an x402-compatible payment rail.

## Known failure modes

- Malformed or non-URL input string may return an error or empty/null fields
- Relative URLs without a scheme may fail to parse correctly
- Very long or encoded URLs may produce unexpected results
- Network or service downtime returns a 5xx error
- Payment failure via x402 protocol blocks the request before processing

## How this service works

Machine-readable settlement service

## Output

Returns a structured JSON object containing the parsed components of the input URL, including protocol/scheme, hostname, port, pathname, search/query string, individual query parameters as key-value pairs, and hash fragment. The exact fields mirror standard URL API decomposition.

## 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-metadata-extraction-427e2cb3/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)
