# x402-gateway HTML to Markdown Converter

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

Converts an HTML string to clean, LLM-ready Markdown with configurable heading style, bullet markers, code block style, and emphasis delimiters.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/html_to_markdown
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-html-to-markdown-converter-f3bbd1d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SuRv2HNTKqYS3rQHWxvoh

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

Example prompt: Take this HTML snippet and convert it to clean markdown using ATX-style headings and dashes as bullet markers — I need it ready for an LLM prompt: '<h1>Hello</h1><ul><li>Item one</li><li>Item two</li></ul>'

## When to prefer this

Choose this endpoint when you need to convert raw HTML into clean, LLM-optimized Markdown with fine-grained control over output style (heading style, bullet marker, code block style, emphasis delimiters). Ideal for preprocessing scraped web content, HTML documents, or email bodies before feeding them into LLM pipelines. Prefer this over generic text extractors when you need structured Markdown output with preserved tables, links, images, and code blocks.

## Known failure modes

- Malformed or invalid HTML input may produce garbled or incomplete Markdown output
- Extremely large HTML payloads may time out or be rejected
- Unsupported HTML elements may be stripped or ignored silently
- Missing required HTML input field returns an error response
- Network or payment (x402) failure prevents the call from completing

## How this service works

x402-gateway tool: html_to_markdown — Convert an HTML string to clean, LLM-ready Markdown. Handles headings, links, images, tables, lists and code blocks. Options: heading style (atx|setext), bullet list marker, code block style, emphasis delimiters.

## Output

Returns clean, LLM-ready Markdown text with HTML elements converted to their Markdown equivalents — headings, links, images, tables, lists, and code blocks — using the configured style options.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "HTML source string to convert to Markdown"
  },
  "options": {
   "type": "object",
   "description": "Conversion options (headingStyle, bulletListMarker, codeBlockStyle, emDelimiter, strongDelimiter)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

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