{"uid":"cap_6GPaRz9vgNRKL7v7Ak6L3","slug":"agentdiet-json-repair-web-distillation-endpoint-9b4b6d0c","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://arxiv-digest-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_RKEym6D_mGxfXj3vUls6j","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 documentation into clean, compressed, agent-ready markdown while reporting token savings and compression ratios","exampleAgentPrompt":"Can you distill the content at https://docs.example.com/api-reference into clean markdown for me, and tell me how many tokens were saved compared to the raw version?","exampleUseCases":[{"title":"Compressing documentation for agent context","prompt":"Take this long API documentation page at https://stripe.com/docs/api and distill it into compact markdown so I can fit it into my agent's context window without blowing up my token budget."},{"title":"Token-efficient research from web articles","prompt":"I need to read through this research article at https://arxiv.org/abs/2310.12345 — can you distill it into clean markdown and show me how much token compression I'm getting?"},{"title":"Cleaning up raw web content for downstream processing","prompt":"Grab the content from https://example.com/investor-relations and convert it into clean agent-ready markdown, I want to know the compression ratio versus the raw page."}],"resultDescription":"Returns a JSON object containing: a 'data' field with mode (e.g. 'markdown'), page title, and distilled clean markdown content; a 'status' field ('ok'); and an 'roi_proof' object showing raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, and roi_multiplier — allowing the agent to verify efficiency gains.","failureModes":["Invalid or unreachable URL returns an error status","Content that cannot be fetched due to paywalls or bot-blocking may return empty or partial content","Payment failure via x402/USDC results in HTTP 402 and no content returned","Malformed input parameters may result in JSON repair fallback or error","Very short pages may show minimal compression ratios with low ROI multiplier"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to consume web content or documentation with minimal token overhead, and when you want quantified proof of compression efficiency (ROI multiplier, tokens saved). Particularly useful for agentic pipelines where LLM context costs matter and clean markdown output is preferred over raw HTML. Best when the target content is documentation, articles, or structured web pages rather than dynamic or authenticated resources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:43:28.209Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-9b4b6d0c"}