# AgentReader HTML-to-Markdown Cleaner

> AgentReader HTML-to-Markdown Cleaner is a paid API for AI agents from agentreader.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts raw HTML strings into clean, LLM-ready markdown by stripping scripts, styles, and boilerplate

## Facts

- Endpoint: POST https://agentreader.dev/clean
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentreader-html-to-markdown-cleaner-56aae1b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EkgRTU1owdEV31OVYYH5Y

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 agentreader-html-to-markdown-cleaner-56aae1b5 -d '<json body>'
```

Example prompt: I already fetched the HTML for that article — can you convert it to clean markdown with all the scripts, styles, and nav clutter stripped out?

## When to prefer this

Use this endpoint when your agent has already fetched the raw HTML of a page and only needs the conversion step — it is cheaper than a full fetch-and-clean endpoint like /read. Ideal for pipelines where HTTP fetching is handled separately or you need to process stored HTML.

## Known failure modes

- Malformed or empty HTML string returns an error response
- Extremely large HTML payloads may be rejected or truncated
- HTML with no meaningful text content may return minimal or empty markdown
- Non-HTML input (e.g. plain text or binary) may produce unexpected output

## How this service works

Convert raw HTML you already have into clean markdown. Send JSON {"html": "..."} and get back markdown with scripts, styles and boilerplate stripped. Cheaper than /read when the agent has already fetched the page.

## Output

A cleaned markdown string with scripts, stylesheets, navigation elements, ads, and other boilerplate removed, leaving only the meaningful textual content of the original HTML page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "Raw HTML string to convert to markdown"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentreader-html-to-markdown-cleaner-56aae1b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentreader.dev](https://www.zero.xyz/host/agentreader.dev/llms.txt)
