{"uid":"cap_rDHEr3SS89ZhypoBJyWE4","slug":"agentdiet-json-repair-web-distillation-endpoint-8e944b75","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://github-audit-72343955726.us-central1.run.app/v1/json-repair?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"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_wxes86CFgKBff160FP5o6","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 malformed JSON into clean, agent-ready markdown with high token compression, returning ROI metrics on tokens saved.","exampleAgentPrompt":"Can you fetch and distill that messy documentation page into clean markdown so I can feed it to the model without burning through tokens — I want to see the compression ratio too.","exampleUseCases":[{"title":"Distill API docs for agent consumption","prompt":"Take this API documentation URL and distill it into clean agent-ready markdown — I want to see how many tokens you saved and the compression ratio so I know it's worth it."},{"title":"Repair malformed JSON before processing","prompt":"This JSON response I got back from a third-party API is broken and won't parse — can you run it through the JSON repair endpoint and give me back something clean and valid?"},{"title":"Compress research page to fit context window","prompt":"I need to feed this long research article into my prompt but it won't fit in the context window — can you distill it down to the key content in markdown and tell me what the ROI multiplier came out to?"}],"resultDescription":"Returns a JSON object containing: distilled content as markdown under data.content, a title, the mode used, status 'ok', and an roi_proof block with raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, and roi_multiplier — giving the agent full transparency into how much the content was compressed.","failureModes":["Invalid or unreachable URL returns an error status with no content","Malformed input that cannot be repaired may return partial or empty data","Rate limiting or payment failure (HTTP 402) if USDC payment via x402 is not processed","Very short or already-minimal content may yield low compression ratio with minimal ROI","Timeout on large or slow-loading pages may return incomplete distillation"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content or broken JSON with minimal token overhead, particularly when fitting content into tight context windows. It is especially useful when you need quantified compression metrics (tokens saved, ROI multiplier) to justify the distillation step. Prefer it over raw web scrapers when the output must be clean, structured markdown rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:43:29.260Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-8e944b75"}