# x402-convert HTML to Markdown

> x402-convert HTML to Markdown is a paid API for AI agents from x402-convert.arikanuk.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Converts raw HTML content into clean Markdown text, paid per-call in USDC on Base via x402.

## Facts

- Endpoint: POST https://x402-convert.arikanuk.workers.dev/html-to-md?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-convert-html-to-markdown-4c249fbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EL0uh8uSPw-uzfHcitRb0

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 x402-convert-html-to-markdown-4c249fbd -d '<json body>'
```

Example prompt: Take this raw HTML and convert it to clean markdown for me: '<h1>Hello</h1><p>This is a <strong>test</strong> paragraph.</p>'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HTML-to-Markdown conversion without managing your own parser or library. It is ideal for AI agent pipelines that sporadically need to normalize HTML content (scraped pages, CMS exports, email bodies) into LLM-friendly markdown, and where a micro-payment model ($0.01 USDC) is preferred over a subscription. It is deterministic and stateless, making it safe to use in automated workflows.

## Known failure modes

- Missing or empty 'html' field in request body — likely returns a 4xx error
- Malformed HTML may produce incomplete or garbled markdown output
- Payment failure via x402 protocol results in 402 Payment Required before conversion occurs
- Very large HTML payloads may time out on the Cloudflare Worker runtime

## How this service works

Deterministic data-conversion API for AI agents. Pay-per-call in USDC on Base via x402 v2.

## Output

A JSON object with a 'markdown' field containing the converted Markdown string, e.g. {"markdown": "# Hello\n\nWorld"}. The output is deterministic for the same HTML input.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "# Hello\n\nWorld"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-convert-html-to-markdown-4c249fbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-convert.arikanuk.workers.dev](https://www.zero.xyz/host/x402-convert.arikanuk.workers.dev/llms.txt)
