# Crypto Market Pulse – JSON Repair Tool

> Crypto Market Pulse – JSON Repair Tool is a paid API for AI agents from cryptopulse.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Deterministically repairs malformed JSON strings produced by LLMs, stripping code fences, fixing trailing commas, single quotes, unquoted keys, and unbalanced braces

## Facts

- Endpoint: GET https://cryptopulse.pythonanywhere.com/ai/json-repair
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-market-pulse-json-repair-tool-5c09cafd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UIulAhO71QAU9By3KDXN6

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 crypto-market-pulse-json-repair-tool-5c09cafd
```

Example prompt: Can you repair this broken JSON I got from an AI model — it has trailing commas, single quotes instead of double quotes, and is wrapped in a code fence: ```json {'name': 'Alice', 'age': 30,}```?

## When to prefer this

Choose this endpoint when you need lightweight, deterministic JSON repair without relying on another LLM call — ideal for post-processing AI-generated structured output in data pipelines, agent workflows, or any scenario where JSON must be machine-parseable before downstream use. It is paid per-call with USDC on Base via x402 so no API key setup is needed.

## Known failure modes

- Input is so severely malformed it cannot be deterministically repaired, returning an error or best-effort partial result
- HTTP 402 returned if x402 payment header is missing or invalid
- Empty or null input returns an error
- Non-JSON input (e.g. plain prose) may not produce meaningful output

## How this service works

Pay-per-call API for AI agents, settled in USDC on Base mainnet (eip155:8453) via the x402 protocol - no API keys, no signup, no subscription. Live crypto market data: BTC, ETH, SOL, USDC (USD Coin) prices with 24h change (source: OKX), Base mainnet chain snapshot (block height, gas price gwei), real-time USDC-on-Base transfer analytics (transfer count, volume, unique senders and recipients over recent blocks), and USDC/ETH wallet balances plus nonce for any address. Agent utility tools: deterministic JSON repair for LLM output (strip code fences, fix trailing commas, single quotes, unquoted keys, balance braces), DNS A/AAAA lookup, and URL extraction from arbitrary text. Every endpoint returns HTTP 402 with an x402 payment challenge in USDC on Base; pay with any wallet and retry with the PAYMENT-SIGNATURE header. MCP server at /mcp (streamable HTTP, 6 pay-per-call tools). Ideal for crypto portfolios, DeFi dashboards, market analysis agents, data pipelines, and LLM post-processing.

## Output

A valid, parseable JSON object with all formatting errors corrected — code fences stripped, trailing commas removed, single quotes replaced with double quotes, unquoted keys quoted, and braces balanced.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": {
   "chainId": 8453,
   "network": "base-mainnet",
   "blockHeight": 21000000,
   "gasPriceGwei": 0.05
  },
  "market": {
   "solana": {
    "usd": 150,
    "usd_24h_change": -0.5
   },
   "bitcoin": {
    "usd": 60000,
    "usd_24h_change": 1.5
   },
   "ethereum": {
    "usd": 3000,
    "usd_24h_change": 2
   },
   "usd-coin": {
    "usd": 1,
    "usd_24h_change": 0
   }
  },
  "servedAt": 1755430000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-market-pulse-json-repair-tool-5c09cafd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptopulse.pythonanywhere.com](https://www.zero.xyz/host/cryptopulse.pythonanywhere.com/llms.txt)
