# x402-gateway: HTML to Markdown

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

Converts raw HTML content into clean, LLM-ready Markdown via a pay-per-call API requiring no accounts or API keys

## Facts

- Endpoint: POST https://x402.freeq.one/market/bazaar/tools/html_to_markdown?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-html-to-markdown-e35f14ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A9C7fuRcKX8jpcAxmbKHb

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

Example prompt: Take this HTML I scraped from the page and convert it to clean Markdown so I can feed it into my LLM pipeline: <html><body><h1>Hello World</h1><p>This is a test.</p></body></html>

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HTML-to-Markdown conversion with no account setup or API key management. It is well-suited for AI agent pipelines that process web content on demand and want to pay only for what they use in USDC on Base. Prefer this over self-hosted solutions when you want zero infrastructure overhead and deterministic per-call pricing.

## Known failure modes

- Malformed or empty HTML input may produce garbled or empty Markdown output
- Payment failure (402) if the agent does not supply valid USDC payment on Base
- Missing or incorrect 'tool' field in the request body returns an error
- Very large HTML documents may time out or be truncated
- Non-HTML input passed as HTML may produce unexpected results

## How this service works

x402-gateway tool: html_to_markdown (market: bazaar)

## Output

Returns a Markdown-formatted string converted from the provided HTML input, with HTML tags stripped and structure preserved as Markdown headings, lists, links, and emphasis where applicable — ready for LLM ingestion or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tool": {
   "type": "string",
   "description": "Tool name (see GET /tools for the catalog)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-html-to-markdown-e35f14ee/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)
