# AgentDiet DOM Stripper

> AgentDiet DOM Stripper is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Fetches a URL and strips its HTML down to clean, compressed DOM content, returning structured data with high compression ratio.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/dom-stripper?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-dom-stripper-a4553559
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fb0A23u4bbiWsTSaf9Q8Y

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-dom-stripper-a4553559
```

Example prompt: Can you strip the HTML from https://example.com/article and give me the clean readable content from that page?

## When to prefer this

Choose this endpoint when you need to extract clean, readable content from a webpage and want a high compression ratio that removes boilerplate HTML — especially useful for feeding web content into LLMs or agent pipelines where token efficiency matters. Prefer this over raw HTTP fetching when you need structured output with metadata like compression ratio.

## Known failure modes

- Invalid or unreachable URL returns an error status
- URL behind authentication or bot protection may return empty or blocked content
- Very large pages may time out or return partial content
- Malformed input schema (missing 'type' or 'method') returns a validation error
- Non-HTTP URLs or unsupported schemes may be rejected

## How this service works

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

## Output

A JSON object containing a 'data' field with the stripped DOM content, a 'status' field indicating success, and a 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%), indicating how much the content was compressed relative to the original HTML.

## 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-dom-stripper-a4553559/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
