# Web2Markdown HTML Stripper (strip_html)

> Web2Markdown HTML Stripper (strip_html) is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Strips HTML tags from input text and returns clean plain text, suitable for LLM processing

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/texttools/strip_html?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web2markdown-html-stripper-strip-html-7a356d1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6IhA3iP_5a6NpfJRQXKru

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 web2markdown-html-stripper-strip-html-7a356d1c
```

Example prompt: Strip the HTML tags from this snippet and give me clean plain text: '<p>Hello <b>World</b>! Visit <a href="https://example.com">our site</a>.</p>'

## When to prefer this

Choose this endpoint when you have a raw HTML string (not a full URL to fetch) and need to quickly strip markup to get plain text, especially in a pay-per-call, no-signup context via x402 on Base. It is ideal for preprocessing scraped HTML snippets or user-submitted HTML before feeding text to an LLM. If you need to fetch and convert a full URL or PDF to Markdown, use the sibling web-to-Markdown endpoints instead.

## Known failure modes

- Input exceeds 100 KiB limit — request rejected
- Missing required 'input' query parameter — validation error
- Malformed or non-string input — unexpected output or error
- Payment not provided or insufficient USDC — 402 Payment Required response
- Network timeout on the Cloudflare Worker — 5xx error

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

A JSON object containing the operation name ('strip_html'), metadata with chars_in, chars_out, and elapsed_ms, and a 'result' field holding the cleaned plain text with all HTML tags removed.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Input text; max 100 KiB"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "meta": {
       "type": "object",
       "properties": {
        "chars_in": {
         "type": "integer"
        },
        "chars_out": {
         "type": "integer"
        },
        "elapsed_ms": {
         "type": "integer"
        }
       }
      },
      "result": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "strip_html",
  "meta": {
   "chars_in": 25,
   "chars_out": 11,
   "elapsed_ms": 0
  },
  "result": "Hello World"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web2markdown-html-stripper-strip-html-7a356d1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
