# Web URL Distillation to Agent-Ready Tokens

> Web URL Distillation to Agent-Ready Tokens is a paid API for AI agents from cve-intel.agentdiet.dev, paid per call via MPP, $0.001/call, status unknown (last checked 2026-10-21).

Fetches a webpage or raw HTML and distills it into compact, token-efficient Markdown, structured JSON, skeleton outline, or BM25-focused excerpts with token budget control.

## Facts

- Endpoint: GET https://cve-intel.agentdiet.dev/v1/paywall-clean-extract?utm_source=zero.xyz
- Price: $0.001/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: cve-intel.agentdiet.dev
- Website: https://cve-intel.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/cve-intel-agentdiet-dev-web-url-distillation-to-agent-ready-tokens-acd95fc1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tJ77J2QIGl99E0VDUkyZ9

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 cve-intel-agentdiet-dev-web-url-distillation-to-agent-ready-tokens-acd95fc1
```

Example prompt: Distill the content at https://stripe.com/docs/payments into clean Markdown using budget mode, focused on 'payment intents', and keep it under 800 tokens.

## When to prefer this

Choose this endpoint when an AI agent needs to read web pages but must stay within token budgets, or when raw HTML is too noisy/large to pass directly into an LLM context. It is especially useful for agentic pipelines doing research, documentation lookup, or competitive intelligence where token efficiency and cost savings matter. Prefer over generic scraping tools when you need BM25-focused relevance filtering or need structured/skeleton output rather than raw text.

## Known failure modes

- Invalid or unreachable URL returns an error status
- max_tokens set too low (below 20) triggers validation error
- mode=budget without a query parameter may return unfiltered excerpt
- Paywalled or bot-blocked pages may return incomplete HTML
- Raw HTML input too large may exceed processing limits
- Network timeout on slow-loading target pages

## How this service works

Distill a URL or raw HTML payload with BM25 budget control (Live x402 v2, IETF MPP & MCP endpoint at https://cve-intel.agentdiet.dev/v1/paywall-clean-extract)

## Output

Returns a 'data' object containing the distilled content in the requested mode (Markdown text, structured JSON tables/metadata, skeleton outline, or BM25-focused excerpt), plus an 'roi_proof' object showing raw vs distilled token counts, tokens saved, compression ratio, and estimated LLM cost saved. Also includes cache status and billing details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "minLength": 1,
   "description": "Target webpage URL to fetch and distill (or builtin://stripe-docs)"
  },
  "html": {
   "type": "string",
   "description": "Optional raw HTML string to distill directly without fetching"
  },
  "mode": {
   "enum": [
    "markdown",
    "structured",
    "skeleton",
    "budget"
   ],
   "type": "string",
   "default": "markdown",
   "description": "Distillation mode"
  },
  "query": {
   "type": "string",
   "description": "BM25 focus query when mode=budget"
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 20,
   "description": "Strict token budget ceiling when mode=budget"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "status",
  "roi_proof",
  "data"
 ],
 "properties": {
  "data": {
   "type": "object",
   "description": "Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."
  },
  "cache": {
   "type": "object",
   "properties": {
    "status": {
     "enum": [
      "HIT",
      "MISS"
     ],
     "type": "string"
    },
    "cache_key": {
     "type": "string"
    },
    "latency_ms": {
     "type": "number"
    }
   }
  },
  "status": {
   "type": "string",
   "description": "Execution status ('ok')"
  },
  "billing": {
   "type": "object",
   "properties": {
    "agent_id": {
     "type": "string"
    },
    "payment_method": {
     "type": "string"
    },
    "fee_charged_usd": {
     "type": "number"
    }
   }
  },
  "roi_proof": {
   "type": "object",
   "properties": {
    "raw_tokens": {
     "type": "integer"
    },
    "tokens_saved": {
     "type": "integer"
    },
    "roi_multiplier": {
     "type": "number"
    },
    "distilled_tokens": {
     "type": "integer"
    },
    "llm_cost_saved_usd": {
     "type": "number"
    },
    "compression_ratio_pct": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cve-intel-agentdiet-dev-web-url-distillation-to-agent-ready-tokens-acd95fc1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cve-intel.agentdiet.dev](https://www.zero.xyz/host/cve-intel.agentdiet.dev/llms.txt)
