{"uid":"cap_2UYGRCj3aP4Cdwpxv0C0E","slug":"agentdiet-json-repair-web-distillation-endpoint-476d6c6e","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://prompt-guard-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_LhFm7qolphkcrGQ7ZCbq_","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 malformed JSON into clean, agent-ready markdown with high compression ratios, using AI-driven token reduction","exampleAgentPrompt":"Can you fetch the docs at https://docs.example.com/api and distill them into clean compressed markdown — I want the token-efficient version so I can fit it in my context window?","exampleUseCases":[{"title":"Distilling long API documentation","prompt":"Grab the page at https://stripe.com/docs/api and distill it into clean agent-ready markdown — I need the highest compression you can manage to fit it in my prompt."},{"title":"Repairing malformed JSON output","prompt":"This JSON came back broken from a scraper: {\"name\": \"Acme\", \"revenue\": 5M, tags: [\"b2b\", growth]} — can you repair it so I can actually parse it?"},{"title":"Compressing web research for context window","prompt":"Pull the content from https://en.wikipedia.org/wiki/Large_language_model and give me a distilled markdown version — I want to know the compression ratio and how many tokens you saved me."}],"resultDescription":"Returns a distilled or repaired result with: cleaned markdown or fixed JSON content, the mode used (e.g. 'markdown'), a title, raw vs distilled token counts, compression ratio percentage, and an ROI multiplier showing how many tokens were saved relative to original input.","failureModes":["Invalid or unreachable URL returns error status","Already-valid JSON passed to repair endpoint returns minimal diff or no-op","Source page blocks crawling (403/robots.txt) causing empty content response","Extremely short input yields near-zero compression ratio","Rate limiting or payment failure (HTTP 402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when an agent needs to ingest verbose web content or documentation into a compressed, token-efficient markdown format, or when a pipeline has produced malformed JSON that needs repair before downstream processing. It is especially valuable when token budget is a constraint and you need quantified proof of compression (ROI metrics). Prefer it over generic scrapers when you want agent-optimized output rather than raw HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:43:43.549Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-476d6c6e"}