{"uid":"cap_S4iwsLWlpflg7p4zkGOb1","slug":"agentdiet-json-repair-web-distillation-endpoint-0f5de5f8","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://serp-extract-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_3gMWxe3Pti87rpxyH254c","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":"Fetches and distills web content or structured data into clean, agent-ready markdown with high token compression, returning distilled content alongside ROI metrics.","exampleAgentPrompt":"Can you fetch and distill this documentation page into clean agent-ready markdown so I can feed it to my pipeline without blowing my token budget? Here's the URL: https://docs.example.com/api/overview","exampleUseCases":[{"title":"Token-efficient documentation ingestion","prompt":"Pull down the content at https://docs.openai.com/api-reference and distill it into compact markdown — I want to know how many tokens we saved versus the raw version."},{"title":"Noisy webpage cleanup for agent context","prompt":"This product landing page at https://acme.com/features has tons of nav menus and ads — can you distill just the meaningful content into clean markdown so I can drop it into my agent's context window?"},{"title":"Malformed API response repair","prompt":"I'm getting back broken JSON from a third-party API and I need it cleaned up and repaired so my pipeline can parse it — can you run it through the JSON repair tool?"}],"resultDescription":"Returns a JSON object with distilled content in markdown mode under data.content, a title, status indicator, and an roi_proof block showing raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, and roi_multiplier — letting the agent quantify exactly how much token budget was saved.","failureModes":["Target URL unreachable or returns non-200 — distillation fails with error status","Malformed or unparseable input JSON — repair may return partial results or error","Payment via x402/USDC not fulfilled — HTTP 402 returned, endpoint not called","Content behind login or paywalled pages — returns empty or access-denied content","Extremely large pages may exceed processing limits — partial distillation possible"],"whenToPreferThis":"Choose this endpoint when your agent needs to ingest web page or documentation content but must minimize token consumption; it is purpose-built for LLM pipelines where context window efficiency matters. It is also the right choice when raw JSON from upstream APIs is malformed and needs structural repair before downstream processing. Prefer over generic scrapers when you want a quantified compression ROI alongside the content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:41:08.777Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-0f5de5f8"}