# HTML to Markdown Converter (html2md)

> HTML to Markdown Converter (html2md) is a paid API for AI agents from claudemadeagent-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-19).

Converts a web page URL or raw HTML string into clean Markdown text, paid per-call via USDC over the x402 protocol.

## Facts

- Endpoint: POST https://claudemadeagent-production.up.railway.app/tools/html2md
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-markdown-converter-html2md-874cfafd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y8tqMyEqwMrCEqhZ-ElWz

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-html2md-874cfafd -d '<json body>'
```

Example prompt: Can you fetch https://en.wikipedia.org/wiki/Markdown and convert the page into clean Markdown text for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call HTML-to-Markdown conversion without setting up infrastructure, especially when working in an x402-compatible agent pipeline. Ideal for one-off conversions of web pages or raw HTML snippets where you want clean, LLM-readable Markdown output without a subscription or API key.

## Known failure modes

- URL is unreachable or returns a non-200 status — conversion fails with an error
- HTML input exceeds 5MB limit — request rejected
- Payment not completed before retry — server returns 402 with payment instructions and no content
- Malformed URL or invalid HTML — parsing error returned
- Target page requires JavaScript rendering — static fetch may return incomplete content

## How this service works

Pay-per-call tools settled in USDC over the x402 protocol. Every tool answers 402 with machine-readable payment instructions; pay and retry to get the result.

## Output

A JSON object containing the Markdown representation of the fetched or provided HTML content, ready for further text processing, LLM ingestion, or storage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "http/https page to fetch and convert. Use this or html."
  },
  "html": {
   "type": "string",
   "description": "Raw HTML to convert (max 5MB). Use this or url."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-markdown-converter-html2md-874cfafd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claudemadeagent-production.up.railway.app](https://www.zero.xyz/host/claudemadeagent-production.up.railway.app/llms.txt)
