# Toolshed HTML to Markdown Converter

> Toolshed HTML to Markdown Converter is a paid API for AI agents from toolshed.lemon-agent.dev, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-15).

Converts an HTML document or snippet into clean Markdown text via a simple HTTP POST call, billed per-use in USDC with no account required.

## Facts

- Endpoint: POST https://toolshed.lemon-agent.dev/convert/html-markdown
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolshed-html-to-markdown-converter-ea51f0d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k0qipqQm1ktgN1nOjqi9c

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 toolshed-html-to-markdown-converter-ea51f0d2 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a fast, no-setup, per-call HTML-to-Markdown conversion without managing credentials or subscriptions. Ideal for agent pipelines that occasionally need to normalize scraped HTML into LLM-friendly Markdown, especially when volume is unpredictable and a pay-per-use micro-payment model (USDC via x402) is preferable to a monthly API key subscription.

## Known failure modes

- Malformed or empty HTML input may result in an error or empty Markdown output
- Very large HTML documents may time out or exceed payload limits
- HTML with complex CSS-based layout will lose styling information as Markdown is purely semantic
- Inline SVG or canvas elements will be stripped or not representable in Markdown
- Payment failure or insufficient USDC balance will result in a 402 response blocking the call

## How this service works

HTML to Markdown conversion

## Output

A plain-text Markdown string equivalent of the submitted HTML. For example, an <h1> tag becomes a # heading, <strong> becomes bold (**text**), and <a href> links become [text](url). The response is returned as text/markdown content type.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "POST"
    },
    "bodyType": {
     "type": "string",
     "const": "text"
    },
    "body": {
     "type": "string",
     "description": "the raw HTML file as the request body, up to 256 KB",
     "maxLength": 262144
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "text"
    },
    "format": {
     "type": "string",
     "const": "text/markdown",
     "description": "the converted Markdown file as the response body (text/markdown)"
    },
    "example": {
     "type": "string",
     "description": "the sample request body above, converted — what a the converted Markdown file as the response body (text/markdown) looks like"
    }
   },
   "required": [
    "type",
    "format"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "text",
 "format": "text/markdown",
 "example": "# Title\n\nSome **bold** text."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolshed-html-to-markdown-converter-ea51f0d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolshed.lemon-agent.dev](https://www.zero.xyz/host/toolshed.lemon-agent.dev/llms.txt)
