{"uid":"cap_UIulAhO71QAU9By3KDXN6","slug":"crypto-market-pulse-json-repair-tool-5c09cafd","name":"Crypto Market Pulse – JSON Repair Tool","description":"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.","url":"https://cryptopulse.pythonanywhere.com/ai/json-repair","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rVHrGuE3wMjUoLjs4rX4i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically repairs malformed JSON strings produced by LLMs, stripping code fences, fixing trailing commas, single quotes, unquoted keys, and unbalanced braces","exampleAgentPrompt":"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,}```?","exampleUseCases":[{"title":"Fix LLM pipeline JSON output","prompt":"The language model just returned this JSON wrapped in triple backticks with trailing commas and single quotes — can you clean it up so I can parse it properly: ```{'items': ['apple', 'banana',], 'count': 2,}```?"},{"title":"Repair unquoted keys in agent response","prompt":"I got this JSON back from my agent but it has unquoted keys and mismatched braces — please fix it: {name: 'Bob', scores: [10, 20, 30}"},{"title":"Sanitize chatbot output before database insert","prompt":"Before I save this to the database, can you repair the JSON my chatbot generated? It's got a code fence around it and some trailing commas that are breaking my parser: ```json {\"user\": \"carol\", \"score\": 95,}```"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:15.230Z","isFirstParty":false}