# AgentDiet Web Distillation API

> AgentDiet Web Distillation API is a paid API for AI agents from json-repair-72343955726.us-central1.run.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-14).

Fetches a URL and returns a compressed, agent-ready markdown summary by stripping noise and distilling content to a fraction of original token count

## Facts

- Endpoint: GET https://json-repair-72343955726.us-central1.run.app/v1/distill?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-web-distillation-api-e5b2ac60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V0RiYosJmsk9zwnkkEiGb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentdiet-web-distillation-api-e5b2ac60
```

Example prompt: Distill the content at https://docs.example.com/api-reference into clean agent-ready markdown and tell me how many tokens you saved compared to the raw page.

## When to prefer this

Choose this endpoint when an AI agent needs to ingest web content but token budget is a concern — it provides measurable compression (often 90%+) with an ROI proof. Prefer it over raw fetch/scrape tools when the goal is to load documentation, articles, or web pages into an LLM context window efficiently. Best suited for single-URL distillation with immediate markdown output rather than bulk crawling or structured data extraction.

## Known failure modes

- URL unreachable or returns non-200 status — likely returns error status in response body
- Paywalled or JavaScript-rendered pages may yield incomplete or empty content
- Payment via x402/USDC not completed — 402 response blocking access
- Very short pages may have low compression ratios offering little ROI
- Rate limiting or cloud infrastructure timeout on slow-loading targets

## How this service works

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).

## Output

Returns a JSON object with a 'data' field containing the distilled content in markdown format along with a title, plus an 'roi_proof' block showing raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, and roi_multiplier — giving the agent both the cleaned content and quantified efficiency gains.

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-web-distillation-api-e5b2ac60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-repair-72343955726.us-central1.run.app](https://www.zero.xyz/host/json-repair-72343955726.us-central1.run.app/llms.txt)
