{"uid":"cap_7GlqQWv1PR2aifEM8B6vv","slug":"agentdiet-json-repair-web-distillation-endpoint-3b0e6c35","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://x402-audit-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_eTBdotxHGaz0p58w9IZs4","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 into clean, agent-ready markdown with high token compression, returning ROI metrics alongside the distilled output.","exampleAgentPrompt":"Can you distill the content at https://docs.example.com/api into clean markdown so I can feed it to my agent without wasting tokens?","exampleUseCases":[{"title":"LLM context compression for docs","prompt":"Take the documentation at https://docs.uniswap.org/contracts/v3/overview and distill it into compact markdown — I want to see how many tokens it saves so I can decide if it's worth using in my pipeline."},{"title":"Agent-ready news article extraction","prompt":"Distill this news article at https://techcrunch.com/2024/05/10/openai-latest into clean markdown my agent can read without all the nav, ads, and boilerplate."},{"title":"On-chain protocol docs for agent ingestion","prompt":"I need the Aave V3 docs page at https://docs.aave.com/developers/getting-started/readme cleaned up and compressed into agent-ready markdown — show me the compression ratio too."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled content as markdown with a title and mode indicator, 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":["Invalid or unreachable URL returns an error status","Rate limiting or payment failure via x402 if USDC balance is insufficient","Timeout for very large or slow-loading pages","Malformed JSON in response if upstream content is unparseable","URL blocked by robots.txt or anti-scraping protections"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content efficiently and token budget is a concern. It is especially useful when feeding documentation, articles, or structured web pages into an LLM context window, and when you want quantified proof of token savings. Prefer it over raw web scraping when you need clean, noise-free markdown output with compression metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:45:23.584Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-3b0e6c35"}