{"uid":"cap_8QE0nuMKjHgnTrrTkA77Z","slug":"agentdiet-json-repair-web-distillation-endpoint-19b87dd3","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://sec-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_FOlsCEGqCfq7gO-y_jtqx","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 compression metrics","exampleAgentPrompt":"Can you distill this URL into clean agent-ready markdown and show me how many tokens were saved in the compression?","exampleUseCases":[{"title":"Token-efficient doc ingestion for agents","prompt":"Take this documentation page and distill it into compact markdown — I want to see the compression ratio and how many tokens we saved before feeding it into my pipeline."},{"title":"Repair malformed API JSON response","prompt":"This JSON response I got back from an external API is broken and won't parse — can you repair it and return a clean valid version?"},{"title":"Compress large webpage before LLM processing","prompt":"I need to summarize and compress the content at this URL into the smallest possible clean markdown before I send it to my LLM — show me the ROI multiplier and token savings."}],"resultDescription":"Returns a JSON object with a 'data' field containing mode (e.g. 'markdown'), title, and distilled content string; plus an 'roi_proof' object showing raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, and roi_multiplier indicating how efficiently the content was compressed.","failureModes":["Invalid or unreachable URL returns error status","Malformed input that cannot be repaired returns parsing failure","Rate limiting or payment failure via x402 returns HTTP 402","Extremely large documents may exceed processing limits","Non-text or binary content at URL may not distill correctly"],"whenToPreferThis":"Choose this endpoint when you need to reduce token overhead before LLM processing, repair broken JSON from external APIs, or convert noisy web pages into clean structured markdown. It is especially valuable for agent pipelines where context window size is a constraint and you need quantified proof of compression efficiency (ROI metrics included in response).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:43:51.436Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-19b87dd3"}