{"uid":"cap_J4ijmWZM0szZA0EPErb-n","slug":"agentdiet-json-repair-web-distillation-endpoint-5841a7ab","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://agentdiet-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_EptaSVZeraWXqKwmFO9Q5","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 a URL and distills its raw web content into compressed, agent-ready markdown, returning token savings and compression metrics alongside the cleaned content.","exampleAgentPrompt":"Can you fetch the docs at https://docs.example.com/quickstart and distill it into clean markdown for me — I want to see how many tokens it saves compared to the raw page?","exampleUseCases":[{"title":"Documentation page compression for agents","prompt":"Grab the contents of https://platform.openai.com/docs/api-reference and distill it into compact markdown — I need something my agent can actually read without blowing through my context window."},{"title":"Research article extraction for LLM pipeline","prompt":"Can you pull this research article at https://arxiv.org/abs/2305.10601 and convert it into clean, distilled markdown with token savings stats? I want to feed it into my summarizer."},{"title":"Landing page intelligence for B2B lead research","prompt":"Distill the content from https://stripe.com/en-us into agent-ready markdown — I'm trying to understand their product offering without processing a huge HTML blob in my pipeline."}],"resultDescription":"Returns a JSON object containing the distilled content as markdown (with a page title and mode), plus ROI proof metrics including raw token count, distilled token count, tokens saved, compression ratio percentage, and an ROI multiplier — all under a status:ok envelope.","failureModes":["URL is unreachable or returns a non-200 response — endpoint may return an error status","Target page is JavaScript-heavy and content cannot be extracted statically","Rate limit or payment failure via x402 protocol results in HTTP 402 response","Malformed or missing URL parameter causes request to fail","Target page has bot protection (e.g. Cloudflare) blocking fetch"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content efficiently and token budget is a concern — it is purpose-built for agent pipelines where raw HTML is too noisy and expensive. Prefer it over generic scraping tools when you also want quantified compression metrics (ROI multiplier, token savings) to justify or log the operation. Ideal for documentation ingestion, competitive intelligence, and research preprocessing steps within agentic workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:34:43.185Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-5841a7ab"}