# FetchHarbor HTML-to-Markdown Converter

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

Converts a raw HTML string into clean, deterministic, LLM-ready Markdown without fetching URLs or invoking AI models.

## Facts

- Endpoint: GET https://fetchharbor.benlab.download/html-to-md
- 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/fetchharbor-html-to-markdown-converter-a4ac20e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bbJm-F-xbEKTVCf0Y4DQC

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 fetchharbor-html-to-markdown-converter-a4ac20e6
```

Example prompt: Convert this HTML snippet into clean Markdown for me: '<h1>Hello World</h1><p>This is a <strong>test</strong> with a <a href="https://example.com">link</a>.</p>'

## When to prefer this

Choose this endpoint when you need fast, deterministic, reproducible HTML-to-Markdown conversion without any network fetching or AI inference overhead. It is ideal for preprocessing pipelines where consistency and auditability matter — such as RAG ingestion, document chunking, or LLM prompt construction — and where you already have the HTML string in hand. Prefer alternatives if you need to fetch a live URL first, or if you need AI-powered semantic cleanup beyond structural conversion.

## Known failure modes

- Missing 'html' query parameter — request fails validation
- Input exceeds 2,000,000 characters — output is truncated and truncated flag set to true
- Malformed or unparseable HTML — may produce partial or empty markdown output
- Payment failure via x402 protocol — call does not execute

## How this service works

Convert a supplied HTML string into deterministic, LLM-ready Markdown. Preserves headings, links, lists, emphasis, and code without fetching a URL or invoking an AI model. Input is bounded to 2,000,000 characters.

## Output

Returns a JSON object with a 'status' field ('success'), a 'markdown' string containing the converted Markdown output, an integer 'character_count' indicating the length of the output, and a boolean 'truncated' flag indicating whether the input was clipped at the 2,000,000 character limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status",
      "markdown",
      "character_count",
      "truncated"
     ],
     "properties": {
      "status": {
       "type": "string",
       "const": "success"
      },
      "markdown": {
       "type": "string"
      },
      "truncated": {
       "type": "boolean"
      },
      "character_count": {
       "type": "integer",
       "minimum": 0
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

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