{"uid":"cap_SBMp8j1ZPpDMOq60PRwK8","slug":"agentdiet-json-repair-web-distillation-endpoint-6bd7af01","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://shopify-spy-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_rkoXncPtaKvI7jCy9l4O_","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 token compression metrics, suitable for downstream AI processing.","exampleAgentPrompt":"Can you distill the content at https://docs.example.com/api-reference into clean markdown so I can feed it to my agent without burning through tokens?","exampleUseCases":[{"title":"Compress docs for agent context","prompt":"Take this documentation page at https://stripe.com/docs/payments and distill it into compact markdown — I want to see how many tokens it saves compared to the raw version."},{"title":"Extract signal from noisy webpage","prompt":"There's a lot of noise on https://techcrunch.com/2024/05/01/some-article — can you distill just the meaningful content into clean agent-ready markdown and tell me the compression ratio?"},{"title":"Repair and clean malformed JSON","prompt":"I have a messy JSON response from a scraper at https://mysite.com/data — can you run it through the JSON repair endpoint and give me back something clean and parseable?"}],"resultDescription":"Returns a JSON object containing distilled markdown content with a title and mode field, plus an ROI proof block showing raw token count, distilled token count, tokens saved, compression ratio percentage, and ROI multiplier — giving the agent quantified evidence of how much context was saved.","failureModes":["Target URL is unreachable or returns non-200 status — endpoint may return an error status","Content is already minimal with low compression opportunity — ROI multiplier close to 1x","Malformed or unparseable source content — may return empty or partial markdown","Rate limiting or payment failure via x402/USDC — 402 response if payment not attached","Very large pages may time out on Google Cloud Run infrastructure"],"whenToPreferThis":"Choose this endpoint when you need to fetch external web content and compress it into token-efficient markdown before passing it to an LLM — especially when token cost is a concern. It is distinct from generic scrapers because it returns structured compression metrics (ROI multiplier, tokens saved) alongside the distilled content, letting agents make informed decisions about context budgets. Prefer this over raw fetch+parse pipelines when working with documentation pages, long-form articles, or noisy HTML that needs cleanup before agent consumption.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:34:43.183Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-6bd7af01"}