{"uid":"cap_jai-N9yUOtZJDYzReAfrU","slug":"x-data-gateway-json-repair-utility-110b3fe9","name":"X Data Gateway — JSON Repair Utility","description":"Live X/Twitter read API plus Base market intel for AI agents: profiles, search, timelines, replies, followers; Base gas, spot prices, token meta/pairs, Base token verdict cards, trending, DefiLlama TVL, wallet intel, x402 probe and text utilities. REST + MCP. Pay per call in USDC via x402 on Base and Solana — no API keys. Free upstream data + local scoring.","url":"https://x-data-gateway.annushka1190.workers.dev/v1/json/repair","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"text":{"type":"string","description":"Raw string (or use json field)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EIluu4MCSnZf9hv_iTdjb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs and normalizes malformed JSON strings, returning a valid, cleaned JSON object","exampleAgentPrompt":"Can you repair this broken JSON string for me? It's missing some closing brackets and has a trailing comma: '{\"name\": \"Alice\", \"age\": 30,'","exampleUseCases":[{"title":"Fix LLM-generated malformed JSON","prompt":"The AI model returned JSON but it has extra text around it and a missing closing brace — can you clean it up so I can parse it? Here's the raw output: '{\"result\": \"success\", \"items\": [1, 2, 3'"},{"title":"Recover corrupted API response data","prompt":"I got a JSON response from a webhook but it got truncated and now it won't parse. Can you repair this partial JSON so I can extract the fields I need? Here it is: '{\"event\": \"payment.completed\", \"amount\": 99.99, \"currency\": \"USD\"'"},{"title":"Sanitize user-submitted JSON input","prompt":"A user pasted some JSON into our form but it has trailing commas and unquoted keys — can you fix it into valid JSON before I process it? The input is: '{name: \"Bob\", tags: [\"admin\", \"user\",]}'"}],"resultDescription":"A JSON object with a `data` field containing the repaired, valid JSON structure parsed from the input malformed string. The response indicates the corrected version of the original broken JSON payload.","failureModes":["Input string is so corrupted that intent cannot be inferred — returns empty or best-effort partial object","Non-JSON input (e.g. plain text, XML) may produce unexpected or empty output","Very large malformed payloads may time out or return partial repairs","Missing required `body` field returns an error or empty data response"],"whenToPreferThis":"Choose this endpoint when you have a malformed, truncated, or syntactically broken JSON string that needs to be recovered or normalized before downstream processing — especially useful for fixing LLM-generated JSON, webhook payloads with transmission errors, or user-submitted JSON with common syntax mistakes like trailing commas or unquoted keys. It is a lightweight, pay-per-call utility requiring no API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:11.194Z","isFirstParty":false}