# HTML to Markdown Converter

> HTML to Markdown Converter is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts an HTML string to clean Markdown text using the turndown npm package, with configurable heading style and bullet list marker

## Facts

- Endpoint: POST https://httpay.xyz/api/html-to-markdown
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-markdown-converter-64be83b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wfyyzBffApFbXLPjk0PrD

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-64be83b4 -d '<json body>'
```

Example prompt: Convert this HTML snippet to markdown using ATX-style headings and dash bullet markers: '<h1>Title</h1><ul><li>Item one</li><li>Item two</li></ul><p>Some paragraph text here.</p>'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HTML-to-Markdown conversion without API keys or subscriptions. Ideal for one-off conversions, agent pipelines processing scraped HTML, or cases where you want turndown-compatible output with control over heading and bullet styles. Prefer over heavyweight document parsers when the input is already valid HTML and you just need clean Markdown.

## Known failure modes

- Missing or empty html body field returns an error
- Invalid headingStyle value (not setext or atx) may cause unexpected output
- Malformed HTML may produce garbled or incomplete markdown
- Payment failure via x402/USDC returns 402 Payment Required
- Very large HTML documents may time out or hit size limits

## How this service works

307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.

## Output

A clean Markdown string representation of the provided HTML, with headings formatted per the chosen style (setext or ATX) and list items using the specified bullet marker character.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Convert HTML to Markdown text. POST JSON body: {html, options}. Options: headingStyle (setext|atx), bulletListMarker (-, *, +). Uses the 'turndown' npm package. Returns clean Markdown string."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-markdown-converter-64be83b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
