# PennyRail URL Query String to JSON Converter

> PennyRail URL Query String 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-14).

Parses a URL or query string and returns its query parameters as a structured JSON object

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.query-to-json--url-params-to-json
- 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-query-string-to-json-converter-6ca8fcc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f39Nzfwe7AOJUOCJg75wj

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-string-to-json-converter-6ca8fcc3 -d '<json body>'
```

Example prompt: Can you parse the query parameters out of this URL into a JSON object? The URL is: https://example.com/search?q=shoes&color=red&size=10&sort=price_asc

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost ($0.001 USDC) serverless utility to parse URL query strings into JSON without setting up your own parsing logic. Ideal for agents that frequently encounter URLs with query parameters and need structured data for downstream processing. Prefer this over manual parsing or heavier ETL tools when the sole task is query-string-to-JSON conversion.

## Known failure modes

- Missing or empty 'input' field returns a validation error
- Malformed or non-URL input may produce an empty object or parsing error
- Extremely long URLs may be truncated or rejected
- URL-encoded special characters may not decode correctly in edge cases
- Payment failure (x402) results in a 402 response before processing begins

## How this service works

Machine-readable settlement service

## Output

A JSON object where each key-value pair represents a decoded query parameter from the input URL or query string. Multi-value parameters may be represented as arrays. The response schema is open-ended (additionalProperties: true), so the exact shape mirrors the parameters found in the input.

## 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-query-string-to-json-converter-6ca8fcc3/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)
