# 24K Labs HTML to Markdown Converter

> 24K Labs HTML to Markdown Converter is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts a supplied HTML string to clean Markdown by stripping scripts, styles, and navigation while preserving semantic content elements.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/html-to-markdown
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-html-to-markdown-converter-443027e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bZAhzV1R_7fG8JMlxcc_A

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 24k-labs-html-to-markdown-converter-443027e8 -d '<json body>'
```

Example prompt: Take this HTML snippet I have and convert it to clean Markdown — strip out any scripts, nav, and styling but keep the headings, bold, links, lists, and code blocks intact.

## When to prefer this

Choose this endpoint when you already have an HTML string in memory and need it converted to Markdown without making an additional HTTP fetch — it is a pure transformation, not a scraper. Ideal for processing HTML from CMS exports, scraped content, or API responses when you need clean, readable Markdown output for documentation, LLM context, or plain-text pipelines.

## Known failure modes

- Malformed or unparseable HTML may produce incomplete or garbled Markdown output
- Very large HTML payloads may exceed size limits or time out
- HTML with no semantic content (pure script/style) returns an empty or minimal Markdown string
- Nested or deeply complex table structures may not convert perfectly to Markdown

## How this service works

Convert a supplied HTML string to clean Markdown: strips scripts/style/nav, preserves headings, bold, italic, links, lists, code, and blockquotes. No fetch.

## Output

A clean Markdown string derived from the input HTML, with scripts, styles, and navigation removed, and semantic elements (headings, bold, italic, links, lists, code blocks, blockquotes) preserved as proper Markdown syntax.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "# Title\n\nHello **world** and [link](http://x.io).\n\n- one\n- two"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-html-to-markdown-converter-443027e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
