{"uid":"cap_XuU9CHajFD6q3Ahx7lbGb","slug":"agentdiet-json-repair-web-distillation-endpoint-463923b5","name":"AgentDiet JSON Repair & Web Distillation Endpoint","description":"15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).","url":"https://domain-osint-72343955726.us-central1.run.app/v1/json-repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["raw_json"],"properties":{"raw_json":{"type":"string","minLength":1,"description":"Malformed, truncated, or markdown-wrapped JSON string to deterministically repair"}},"additionalProperties":false},"output":{"type":"object","required":["status","roi_proof","data"],"properties":{"data":{"type":"object"},"status":{"type":"string"},"roi_proof":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"mode":"markdown","title":"Example Documentation","content":"# Example Documentation\nClean agent-ready markdown..."},"status":"ok","roi_proof":{"raw_tokens":14200,"tokens_saved":13520,"roi_multiplier":67.6,"distilled_tokens":680,"compression_ratio_pct":95.2}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_LlP05gCxFqnikfHv6Omky","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 distills raw web or JSON content into clean, compressed, agent-ready markdown with token-efficiency metrics","exampleAgentPrompt":"Take this raw messy JSON blob I got from a web scrape and repair it into clean agent-ready markdown — I want to see how many tokens were saved and the compression ratio too.","exampleUseCases":[{"title":"Distilling noisy web page content","prompt":"I scraped this page and the JSON is a mess — can you clean it up and distill it into tidy markdown so my downstream agent doesn't burn through tokens?"},{"title":"Benchmarking token savings before LLM call","prompt":"Before I send this large JSON response to the LLM, run it through the JSON repair distiller and tell me the compression ratio and how many tokens I'll save."},{"title":"Fixing malformed API response for pipeline","prompt":"My data pipeline is choking on a malformed JSON response from a third-party API — repair it and give me back clean structured markdown I can feed into the next step."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled content in markdown mode with a title and cleaned markdown body, plus an 'roi_proof' object showing raw token count, distilled token count, tokens saved, compression ratio percentage, and ROI multiplier. Status field confirms success.","failureModes":["Malformed or empty input returns no content or error status","Extremely large payloads may timeout on the Cloud Run instance","Non-JSON or unrecognized content types may not distill cleanly","Network or cold-start latency on Google Cloud Run may cause delays","x402 payment failure blocks access if USDC payment is not confirmed"],"whenToPreferThis":"Choose this endpoint when you need to repair broken JSON and simultaneously compress content into token-efficient markdown for agent pipelines. It is especially useful when token budget is a concern and you want measurable ROI metrics on compression. Prefer it over generic JSON validators when you also need the output in readable markdown format, or over raw web scrapers when you want distilled signal rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:31:40.658Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-463923b5"}