# HTML to Markdown Converter (WELL-004)

> HTML to Markdown Converter (WELL-004) 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 unknown (last checked 2026-10-21).

Converts raw HTML strings or fetches a public URL and converts its HTML content to clean, tidy Markdown, charged at $0.005 USDC via x402 payment protocol.

## Facts

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

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-well-004-6a6de066 -d '<json body>'
```

Example prompt: Convert this HTML snippet to clean markdown: '<h1>Hello</h1><p>This is a <strong>test</strong> page with a <a href="https://example.com">link</a>.'

## When to prefer this

Choose this endpoint when you need to convert HTML — either as a raw string or fetched from a public HTTPS URL — into clean Markdown, especially for LLM ingestion, note-taking pipelines, or content archiving. Prefer it over general-purpose scraping tools when the desired output format is explicitly Markdown. The built-in URL fetching with redirect handling and size limits makes it safe for automated pipelines.

## Known failure modes

- HTTP URLs (non-HTTPS), file://, data://, localhost, or private IP addresses are rejected with an error
- Response body exceeds 1 MB limit — fetch aborted
- URL fetch times out after ~10 seconds
- More than 5 redirects encountered — fetch fails
- Neither 'html' nor 'url' parameter provided — request rejected
- URL returns non-HTML content type that cannot be meaningfully converted

## 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 }.

## Output

Returns a JSON object containing: 'source' (whether input was 'html' or 'url'), optional 'url' and 'final_url' (after redirects), optional 'content_type' of the fetched resource, 'markdown' (the converted Markdown string), and 'warnings' (an array of any non-fatal issues encountered, e.g. if both html and url were supplied).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-to-markdown-converter-well-004-6a6de066/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)
