# HTML to Markdown Converter

> HTML to Markdown Converter is a paid API for AI agents from well-004-html-to-markdown.mmelnyk2000.workers.dev, paid per call via x402, $0.005/call, status down (last checked 2026-10-23).

Converts HTML content (provided directly or fetched from a public URL) into clean, tidy Markdown text

## Facts

- Endpoint: POST https://well-004-html-to-markdown.mmelnyk2000.workers.dev/api/html-to-markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-to-markdown-converter-234801a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9uXnEO9vU2gV5wMlmtUx2

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

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

## When to prefer this

Choose this endpoint when you need to programmatically convert HTML content — either inline or from a public web page — into clean Markdown. It is ideal for content ingestion pipelines, documentation scraping for RAG systems, or cleaning up HTML for storage in markdown-based tools. Prefer this over generic web scrapers when your goal is specifically markdown output rather than raw text or structured data extraction.

## Known failure modes

- Non-HTTPS or private/local URLs (http, file, data, localhost, private IP ranges) are rejected with an error
- URL fetch timeout after ~10 seconds returns an error
- Response body exceeding 1 MB is rejected
- More than 5 redirects causes a fetch failure
- If both html and url are provided, html is used and a warning is returned — url is ignored
- Malformed or empty HTML may produce minimal or empty markdown output

## How this service works

Convert HTML to tidy markdown ($0.005 USDC via x402). Pass html (string) and/or url (public https to fetch). At least one required; if both, prefers html and warns. URL fetches use the same allowlist as WELL-002 (https only — http/file/data/localhost/private IPs rejected; 1 MB body, ~10s timeout, max 5 redirects). Returns JSON { source, url?, final_url?, content_type?, markdown, warnings }. Provided as is, with no warranty or guarantee of accuracy or fitness. Nothing is stored.

## Output

A JSON object containing: 'source' (whether input came from 'html' or 'url'), optionally 'url' and 'final_url' (after redirects), 'content_type' of the fetched page, 'markdown' (the converted markdown string), and 'warnings' (array of any issues encountered, e.g. if both html and url were supplied).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "https URL to fetch HTML from and convert. http/file/data/localhost/private IPs rejected."
  },
  "html": {
   "type": "string",
   "description": "HTML string to convert to markdown. Preferred when both html and url are set."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-markdown-converter-234801a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from well-004-html-to-markdown.mmelnyk2000.workers.dev](https://www.zero.xyz/host/well-004-html-to-markdown.mmelnyk2000.workers.dev/llms.txt)
