# PennyRail Query String to JSON Parser

> PennyRail Query String to JSON Parser 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 with key-value pairs

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/url.query-to-json--parse-query-params
- 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-parser-0856643d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_35YNSARV8PpO6_HzLq9mh

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-parser-0856643d -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, paid micro-service to parse URL query strings into JSON without setting up server-side parsing logic. Ideal for agent workflows that receive raw URL query strings and need structured data, especially when operating in an x402 payment-enabled environment.

## Known failure modes

- Malformed or empty query string may return an empty object or error
- URL-encoded characters that are improperly encoded may not decode correctly
- Very long query strings may hit input size limits
- Ambiguous repeated keys may produce inconsistent array vs. scalar handling

## How this service works

Machine-readable settlement service

## Output

A JSON object where each query parameter key maps to its corresponding value (or an array of values if a key appears multiple times), parsed from the input query string.

## 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-parser-0856643d/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)
