# fittings HTML-to-Markdown Converter

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

Converts an HTML document into clean Markdown by stripping scripts and styles, returning readable structured text.

## Facts

- Endpoint: POST https://fittings.sh/v1/doc/html-to-markdown
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-html-to-markdown-converter-9e2a0626
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_497HoOUWrtZXUAHQcBDK6

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 fittings-html-to-markdown-converter-9e2a0626 -d '<json body>'
```

Example prompt: Take this HTML I scraped and convert it to clean Markdown, stripping out all the scripts and styles so I can feed it to my model.

## When to prefer this

Choose this endpoint when you need a simple, deterministic HTML-to-Markdown conversion with script and style stripping — especially useful for preprocessing scraped web content or HTML documents before feeding them to LLMs. Prefer it over general-purpose scraping or parsing tools when you already have the raw HTML and just need a clean Markdown representation without running a full browser or writing custom parsing logic.

## Known failure modes

- HTML exceeds 2,000,000 byte limit — request rejected
- Malformed or non-UTF-8 input may cause parsing errors
- Empty or whitespace-only HTML returns empty or minimal Markdown
- Payment not included or rejected — 402 response requiring x402 payment
- Extremely deeply nested HTML may produce unexpected Markdown structure

## How this service works

Convert an HTML document supplied in the request body to clean Markdown, stripping scripts and styles.

## Output

A Markdown-formatted string representing the content of the submitted HTML document, with all script tags, style tags, and their contents removed, leaving clean human-readable text and structure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "HTML source, up to 2000000 bytes of UTF-8"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-html-to-markdown-converter-9e2a0626/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
