# HTML to Markdown Converter

> HTML to Markdown Converter is a paid API for AI agents from agent-data-toolkit.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Converts raw HTML into clean Markdown by stripping scripts and styles, leaving readable prose structure.

## Facts

- Endpoint: POST https://agent-data-toolkit.onrender.com/markdown
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-markdown-converter-9e42904a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dfdis4rUVFmT5_ch_EroI

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 html-to-markdown-converter-9e42904a -d '<json body>'
```

Example prompt: Can you convert this raw HTML into clean Markdown? Strip out all the scripts and styles and give me just the readable content: <html><body><h1>Hello</h1><p>World</p><script>alert('x')</script></body></html>

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.002 USDC) server-side HTML-to-Markdown conversion that explicitly strips scripts and styles — ideal for cleaning scraped web pages before feeding content to an LLM or storing readable text. Prefer this over client-side parsing when you need consistency across environments or when running in a headless/server context without DOM access.

## Known failure modes

- Malformed or empty HTML body returns an error or empty string
- Extremely large HTML payloads may time out on the Render free tier
- Non-HTML content passed as input may produce garbled Markdown
- Missing or invalid Content-Type header may cause a 400 response
- Payment not included or invalid x402 header returns 402 Payment Required

## How this service works

Convert raw HTML into clean Markdown (scripts and styles stripped).

## Output

A clean Markdown string derived from the input HTML, with all script tags, style tags, and their contents removed, and HTML structure converted to standard Markdown syntax (headings, bold, lists, links, etc.).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string",
       "description": "string, raw HTML (required)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "required": [
      "ok",
      "markdown"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "markdown": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-markdown-converter-9e42904a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-toolkit.onrender.com](https://www.zero.xyz/host/agent-data-toolkit.onrender.com/llms.txt)
