# AgentDiet Paywall-Clean Extract — Context Window Distiller

> AgentDiet Paywall-Clean Extract — Context Window Distiller is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Fetches a URL, strips paywalls and boilerplate, and returns a heavily compressed clean-text extraction with a compression ratio proof

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/paywall-clean-extract?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-paywall-clean-extract-context-window-distiller-b285dade
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eusLQaIsVurqcskf6s7O3

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-paywall-clean-extract-context-window-distiller-b285dade
```

Example prompt: Can you fetch and clean up https://example.com/long-article for me? I want just the essential content, stripping all the ads, nav menus, and boilerplate so it fits in my context window without wasting tokens.

## When to prefer this

Choose this endpoint when you need to minimize token usage by cleaning and compressing web content before ingesting it into an AI context window or LLM prompt. It is ideal for agentic pipelines that need to fetch and process many URLs without hitting context limits, and for any scenario where raw webpage content (with ads, navigation, boilerplate) would otherwise waste a large fraction of the available token budget. Prefer it over generic web scrapers when token efficiency and a measurable compression proof are important outputs.

## Known failure modes

- URL is unreachable or returns a non-200 response — endpoint may return an error status
- Paywalled content fully blocked without a cached or accessible version — data field may be empty or partial
- Invalid or missing 'url' query parameter — likely returns a 400-style error
- Rate limiting or payment verification failure via x402 — returns 402 Payment Required
- Target URL returns binary or non-text content (PDF, image) — extraction may fail or return empty data

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing the clean extracted text, a 'status' field ('ok' on success), and an 'roi_proof' object that includes a 'compression_ratio_pct' value (e.g. 91.4) showing how much the content was compressed relative to the raw input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "mode": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-paywall-clean-extract-context-window-distiller-b285dade/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
