# SiteCheck HTML to Clean Markdown Converter

> SiteCheck HTML to Clean Markdown Converter is a paid API for AI agents from api.fadeandco.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Converts raw HTML (up to 500 KB) into clean GitHub-flavoured Markdown, stripping scripts, styles, nav, footers, forms, and comments while resolving relative links to absolute URLs.

## Facts

- Endpoint: POST https://api.fadeandco.workers.dev/api/agent-intel/html-dom-to-clean-markdown?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-html-to-clean-markdown-converter-26cb6a74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kVaVcE4rDJzo_tdEC2riX

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 sitecheck-html-to-clean-markdown-converter-26cb6a74 -d '<json body>'
```

Example prompt: Take this raw HTML from the product page and convert it to clean markdown — use https://example.com/products as the base URL so relative links become absolute.

## When to prefer this

Choose this endpoint when you have raw HTML that needs to be sanitised and converted to human- or LLM-readable markdown, especially when you want boilerplate (scripts, styles, nav, footers, forms, comments) stripped away. It is ideal for preprocessing scraped web pages before passing content to a language model, or when relative links need resolving against a known base URL. Prefer it over generic HTML-strippers when GitHub-flavoured Markdown formatting (headings, code blocks, lists, images) must be preserved.

## Known failure modes

- HTML input exceeds 500,000 characters — request rejected
- Missing or empty html field — validation error returned
- Malformed base URL causes relative link resolution to fail silently or error
- Extremely nested or malformed HTML may produce garbled markdown output
- Tables are flattened to plain text, losing tabular structure

## How this service works

Converts raw HTML you send (up to 500 KB) to GitHub-flavoured Markdown: headings, paragraphs, links, images, lists, code blocks, quotes, bold and italic. Scripts, styles, navigation, footers, forms and comments are removed; tables are flattened to text. Relative links need a base URL to become absolute.

## Output

A JSON object containing the original HTML source, the optional base URL used, the converted GitHub-flavoured Markdown string (with headings, paragraphs, links, images, lists, code blocks, blockquotes, bold, and italic preserved), a checkedAt ISO timestamp, and the character count of the resulting markdown.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "HTML text, 1 to 500000 characters"
  },
  "baseUrl": {
   "type": "string",
   "description": "Optional page address used to resolve relative links"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "the HTML you sent",
  "baseUrl": "https://example.com/",
  "markdown": "## Title\n\nSee [the docs](https://example.com/docs).",
  "checkedAt": "2026-10-23T09:35:23.080Z",
  "characters": 51
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-html-to-clean-markdown-converter-26cb6a74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fadeandco.workers.dev](https://www.zero.xyz/host/api.fadeandco.workers.dev/llms.txt)
