# PennyRail URL Query-to-JSON Converter

> PennyRail URL Query-to-JSON Converter 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-15).

Parses a URL query string into a structured JSON object

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/url.query-to-json
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-url-query-to-json-converter-5f4fd1e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gFr5TEb-fpn7z5zsuLIgV

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-query-to-json-converter-5f4fd1e1 -d '<json body>'
```

Example prompt: Can you parse this URL query string '?name=Alice&age=30&city=New+York' into a JSON object so I can work with the values more easily?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) micro-service to programmatically parse a URL query string into JSON without standing up your own parsing logic. Ideal for agent pipelines that receive redirect URLs, form submissions, or analytics links and need structured access to the parameters.

## Known failure modes

- Malformed or empty query string may yield an empty result object or error
- URL-encoded special characters that fail decoding may be omitted or cause parsing errors
- Very long query strings may be truncated
- Non-standard query string formats (e.g., nested brackets) may not parse as expected
- Payment failure (402) if USDC balance is insufficient

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing an 'operation' field describing the transformation performed and a 'result' field with the parsed key-value pairs from the query string as a structured JSON object. Additional fields may be present.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "operation",
  "result"
 ],
 "properties": {
  "result": {},
  "operation": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-url-query-to-json-converter-5f4fd1e1/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)
