# PennyRail URL JSON-to-Query Converter

> PennyRail URL JSON-to-Query 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-10-23).

Converts a JSON object input into a URL query string format via a paid settlement endpoint

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/f/url.json-to-query?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-url-json-to-query-converter-218d377e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hrhivfStpJgoD36Es9wlO

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

Example prompt: Can you convert this JSON object into a URL query string for me: {"name": "Alice", "age": 30, "city": "New York"}?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call microservice to convert JSON objects into URL query strings without standing up your own serialization logic. Useful in agentic pipelines where URL construction is a bottleneck and a per-call micro-payment model is acceptable.

## Known failure modes

- Missing 'input' field in request body returns validation error
- Malformed or non-object input may produce unexpected serialization
- Payment failure (402) if USDC balance is insufficient
- Deeply nested JSON objects may not serialize predictably into flat query strings
- Empty input object may return an empty or trivial result

## How this service works

Machine-readable settlement service

## Output

Returns an object containing an 'operation' string describing what was performed and a 'result' field containing the converted query string output from the JSON input.

## Request schema (JSON Schema)

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

## 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-json-to-query-converter-218d377e/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)
