{"uid":"cap_B7cbubYIN2Y2rBWbFD3qZ","slug":"agentdiet-json-repair-web-distillation-endpoint-f99c0e99","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://llms-generator-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_K02AVKByHAzMbPEd14mpq","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, supporting JSON repair as part of a multi-capability B2A hub.","exampleAgentPrompt":"Can you distill the content at 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 documentation for agent context","prompt":"Take the content from https://stripe.com/docs/api and compress it into clean markdown my agent can read — I want to know the compression ratio and how many tokens were saved."},{"title":"Repair broken JSON from a scrape","prompt":"I scraped some JSON from a third-party site but it's malformed and my pipeline is choking on it — can you repair it and give me back valid JSON I can work with?"},{"title":"Token-efficient web research briefing","prompt":"Pull the content from https://en.wikipedia.org/wiki/Transformer_(machine_learning_model) and distill it into a short, agent-ready markdown summary — I'm trying to keep my context window lean."}],"resultDescription":"Returns a JSON object containing distilled markdown content with a title, compression statistics including raw token count, distilled token count, tokens saved, compression ratio percentage, and an ROI multiplier — plus a status field confirming success.","failureModes":["Invalid or unreachable URL returns an error status","Malformed input JSON that cannot be repaired returns a parse failure","Rate limiting or payment failure (HTTP 402) if USDC payment not attached","Very large pages may hit token or response size limits","Non-public or paywalled URLs may return empty or partial content"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content efficiently without burning excessive context tokens, or when raw JSON from an external source needs repair before further processing. Especially useful when feeding documentation, articles, or API references into an LLM pipeline where token cost matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T06:44:21.558Z","isFirstParty":false,"canonicalSlug":"agentdiet-json-repair-web-distillation-endpoint-f99c0e99"}