# Machine Shop – HTML to Markdown Converter

> Machine Shop – HTML to Markdown Converter is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-20).

Converts raw HTML into clean Markdown text, resolving relative links against an optional base URL.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/html-to-markdown?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-html-to-markdown-converter-d88a6b6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l7EY7ix_6D-PdZbpv-z1Y

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 machine-shop-html-to-markdown-converter-d88a6b6e -d '<json body>'
```

Example prompt: Can you convert this HTML snippet into Markdown for me? Here's the HTML: '<h1>Hello</h1><p>This is a <a href="/docs">link</a>.</p>' — use 'https://example.com' as the base URL so relative links resolve correctly.

## When to prefer this

Choose this endpoint when you need a reliable, pay-per-call HTML-to-Markdown conversion without setting up your own parser. Ideal for agents that scrape or receive HTML content and need clean Markdown for LLM ingestion, document comparison, or field extraction. Prefer it over general-purpose scrapers when you already have the raw HTML and just need the format conversion step.

## Known failure modes

- HTML input exceeds 50,000 character limit — request rejected
- Invalid or malformed base_url — links may not resolve correctly
- Empty or null HTML input — returns empty or minimal Markdown
- Malformed HTML that cannot be parsed — output Markdown may be incomplete or garbled
- Payment not provided or insufficient — x402 payment required error

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

A JSON object with a single 'markdown' field containing the converted Markdown string derived from the supplied HTML, with relative URLs optionally resolved against the provided base URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "title": "Html",
   "maxLength": 50000
  },
  "base_url": {
   "type": "string",
   "title": "Base Url",
   "default": "",
   "maxLength": 2048
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "# Hello\n\nAgent documents."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-html-to-markdown-converter-d88a6b6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
