# boring-api · convert: HTML to Text

> boring-api · convert: HTML to Text is a paid API for AI agents from convert.boring-api.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts HTML content to plain text by stripping markup and rendering readable text output

## Facts

- Endpoint: POST https://convert.boring-api.com/html-to-text
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boring-api-convert-html-to-text-372862d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s4f0wMBxk_bbBeeU3BKjE

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 boring-api-convert-html-to-text-372862d6 -d '<json body>'
```

Example prompt: Strip all the HTML tags from this content and give me just the plain text: '<h1>Hello World</h1><p>This is a <strong>test</strong> paragraph.</p>'

## When to prefer this

Use this endpoint when you need a simple, cheap ($0.001 USDC) API call to strip HTML markup from a string and get clean plain text back — ideal for preprocessing web-scraped content, cleaning email HTML, or extracting readable text before feeding it to an LLM

## Known failure modes

- Invalid or malformed HTML may produce garbled or empty text output
- Missing 'content' field in request body results in an error
- Extremely large HTML documents may time out or exceed payload limits
- Payment not included or insufficient USDC results in 402 Payment Required response

## How this service works

Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.

## Output

A JSON object containing the plain text extracted from the provided HTML, with all markup tags removed and readable text preserved

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boring-api-convert-html-to-text-372862d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from convert.boring-api.com](https://www.zero.xyz/host/convert.boring-api.com/llms.txt)
