# Web URL Distiller (DOM Stripper)

> Web URL Distiller (DOM Stripper) is a paid API for AI agents from mcp-compiler.agentdiet.dev, paid per call via MPP, $0.001/call, status unknown (last checked 2026-10-21).

Fetches a web page and compresses it into compact, agent-ready tokens using markdown, structured, skeleton, or BM25 budget extraction modes.

## Facts

- Endpoint: GET https://mcp-compiler.agentdiet.dev/v1/dom-stripper?utm_source=zero.xyz
- Price: $0.001/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: mcp-compiler.agentdiet.dev
- Website: https://mcp-compiler.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/mcp-compiler-agentdiet-dev-web-url-distiller-dom-stripper-e83516a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2gp4cqeSMb4uwz6_OODzu

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 mcp-compiler-agentdiet-dev-web-url-distiller-dom-stripper-e83516a9
```

Example prompt: Can you distill https://stripe.com/docs/payments/payment-intents into compact markdown so I can feed it to my agent without blowing through my token budget?

## When to prefer this

Choose this endpoint when you need to feed live web content to an LLM but want to minimize token usage and cost. It is especially useful when the target page is long or noisy (ads, navigation, boilerplate) and you only need the substantive content. The budget mode with BM25 query filtering is ideal when you need only the section of a page relevant to a specific topic. Prefer it over raw fetch-and-pass approaches whenever LLM context window size or per-token cost is a concern.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return an error status
- Target page is JavaScript-rendered and content is not accessible via server-side fetch
- max_tokens is set too low to capture meaningful content
- query parameter is missing when mode=budget, resulting in unfiltered output
- Payment via x402 fails or is insufficient — request blocked with 402 response
- Rate limiting or upstream block on the target domain

## How this service works

Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://mcp-compiler.agentdiet.dev/v1/dom-stripper)

## Output

Returns a distilled version of the target webpage in the requested format (markdown, structured JSON, skeleton outline, or BM25-focused excerpt), along with ROI proof metrics including raw token count, distilled token count, tokens saved, compression ratio percentage, estimated LLM cost saved in USD, and optional cache hit/miss status and billing info.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "minLength": 1,
   "description": "Target webpage URL to distill (or builtin://stripe-docs)"
  },
  "mode": {
   "enum": [
    "markdown",
    "structured",
    "skeleton",
    "budget"
   ],
   "type": "string",
   "default": "markdown",
   "description": "Extraction mode: markdown, structured, skeleton, or budget"
  },
  "query": {
   "type": "string",
   "description": "BM25 focus query when mode=budget"
  },
  "max_tokens": {
   "type": "integer",
   "minimum": 20,
   "description": "Strict token 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/mcp-compiler-agentdiet-dev-web-url-distiller-dom-stripper-e83516a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-compiler.agentdiet.dev](https://www.zero.xyz/host/mcp-compiler.agentdiet.dev/llms.txt)
