{"uid":"cap_oh0-6feoR63S_CxDFcNW7","slug":"agentdiet-json-repair-web-distillation-endpoint-4d9aa2e9","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://token-intel-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_MD-1MLOlNUKfS1X_9D2iP","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 JSON into clean, compressed, agent-ready markdown with token-efficiency metrics","exampleAgentPrompt":"Can you distill https://docs.example.com/api-reference into clean agent-ready markdown and tell me how many tokens it saved compared to the raw page?","exampleUseCases":[{"title":"Distill API docs for agent context","prompt":"Fetch and compress the documentation at https://stripe.com/docs/api into clean markdown so I can include it in my agent's context window without burning too many tokens — show me the compression ratio too."},{"title":"Repair and clean raw JSON response","prompt":"I got a malformed JSON blob from a third-party API — can you repair it and return a clean, readable version? Here it is: {\"name\":\"Acme\",\"revenue\":\"$1M\",\"founded\":2010,}"},{"title":"Summarize research page for LLM pipeline","prompt":"Distill the content at https://arxiv.org/abs/2310.06825 into compact agent-ready markdown and tell me how many tokens were saved versus loading the raw page."}],"resultDescription":"Returns a JSON object containing: distilled markdown content with a title and mode label, HTTP status 'ok', and an roi_proof block showing raw token count, distilled token count, tokens saved, compression ratio percentage, and ROI multiplier — enabling agents to verify efficiency gains.","failureModes":["Invalid or unreachable URL returns error status with no content","Malformed input JSON that cannot be repaired returns a parse failure","Payment failure via x402/HTTP 402 if USDC balance is insufficient","Rate limiting or timeout on large pages may return partial content","Non-public URLs or paywalled pages may return empty or error content"],"whenToPreferThis":"Choose this endpoint when you need to reduce token consumption before passing web content into an LLM context, when you want clean structured markdown from noisy HTML pages, or when you need to repair malformed JSON. It is especially useful for agents operating under tight context window constraints or cost budgets, since it provides explicit token savings metrics to justify usage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:38:48.557Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-4d9aa2e9"}