# x402broker DOM Stripper

> x402broker DOM Stripper is a paid API for AI agents from x402broker.com, paid per call via x402 or MPP, $0.001/call, status unknown (last checked 2026-10-20).

Fetches a URL and strips 85-97% of HTML token bloat, returning semantically distilled page content optimized for LLM consumption

## Facts

- Endpoint: GET https://x402broker.com/v1/dom-stripper?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402broker-dom-stripper-36f3977c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i7DrqQhYCMS1juteHHkry

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 x402broker-dom-stripper-36f3977c
```

Example prompt: Fetch https://techcrunch.com/2024/05/01/openai-new-model/ and strip out all the HTML bloat so I just get the meaningful article content — I need to feed it into my LLM without burning through my context window.

## When to prefer this

Choose this endpoint when you need to fetch and process web pages for LLM consumption and want to minimize token usage — ideal when context window cost is a concern, when building agent research pipelines, or when you need clean readable text from HTML-heavy pages. Prefer over raw HTTP fetch when the goal is to pass page content into an AI model. Best for single-URL distillation where you need fast, cheap ($0.001 USDC) semantic extraction without running your own headless browser infrastructure.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return an error or empty content
- JavaScript-rendered pages may not be fully captured if no headless browser is used
- Very large pages may still exceed context limits even after distillation
- Paywalled or auth-required pages will return login/error HTML rather than content
- Invalid or malformed URL input returns a validation error
- Rate limiting or blocking by target website may result in empty or partial responses

## How this service works

Distill a URL or raw HTML payload with BM25 budget control (Live x402 v2, IETF MPP & MCP endpoint at https://x402broker.com/v1/dom-stripper)

## Output

A semantically distilled version of the fetched webpage with 85-97% of HTML token bloat removed, returning only meaningful text content suitable for LLM ingestion. Response includes the extracted semantic text and optionally structured example output depending on the mode selected.

## 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/x402broker-dom-stripper-36f3977c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402broker.com](https://www.zero.xyz/host/x402broker.com/llms.txt)
