# PennyRail Query String to JSON Converter

> PennyRail 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 query string into a structured JSON object

## Facts

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

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

Example prompt: Can you parse the query string 'name=Alice&age=30&city=New+York&active=true' into a JSON object for me?

## When to prefer this

Choose this endpoint when you need a quick, paid microservice to convert a raw URL query string into a parsed JSON object without running your own parsing logic. Particularly useful in agent pipelines that receive URL-encoded data from webhooks, forms, or redirects and need structured JSON for downstream processing.

## Known failure modes

- Malformed or empty input string may return an empty object or error
- Deeply nested bracket notation (e.g. filters[0][name]=foo) may not be parsed correctly
- Special characters not properly percent-encoded may cause parsing errors
- Missing 'input' field in request body returns a validation error

## How this service works

Machine-readable settlement service

## Output

A JSON object where each query string key maps to its corresponding value (or array of values for repeated keys), with URL encoding decoded. The response is an open-ended object reflecting the parsed parameters.

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