$ man html-markdown
/html-markdown
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
uncategorized
STATUS
● live
NAME
html-markdown — html to markdown api / webpage to markdown / clean page text extractor
synonym alias of html-to-markdown — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/html-markdown
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
HTML to Markdown API / webpage to Markdown / clean page text extractor. Converts raw HTML or a URL into Markdown while preserving headings, lists, tables, code blocks, links, and images.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| html | string | Raw HTML to convert. Mutually exclusive with 'url' — supply one. | optional |
| url | string | Page URL to fetch and convert. Server follows redirects. Mutually exclusive with 'html'. | optional |
| include_links | boolean | Keep hyperlinks as Markdown [text](href). Default true. Set false for prose-only output. | optional |
| include_images | boolean | Keep images as Markdown . Default true. | optional |
| user_agent | string | Optional User-Agent header sent when fetching 'url'. Default is a generic browser UA. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| source_url | string | — |
| title | string | — |
| markdown | string | — |
| markdown_chars | string | — |
| html_chars | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/html-markdown \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the html-markdown tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- mediakithtmlmarkdownhtml-markdown
- methods
- POST
- cluster
- mediakit
- price
- $0.005 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| compress-pdf | PDF compressor / PDF size reducer. | $0.005 |
| convert-html-to-markdown | Convert HTML to Markdown. | $0.005 |
| excel-to-csv | Excel (.xlsx / .xls) to CSV / TSV / JSON converter. | $0.005 |
| excel-to-google-sheets | Convert Excel to Google Sheets / XLSX to Google Sheets / spreadsheet import / Numbers to Google Sheets / Excel to gsheet. | $0.005 |
| html-to-markdown | Convert HTML to Markdown. | $0.005 |
| pdf-compress | PDF compressor / shrink PDF / PDF size reducer / smaller PDF for email. | $0.005 |
| url-to-markdown | URL to Markdown / webpage to Markdown converter / article cleanup API. | $0.005 |
| xlsx-to-csv | Excel to CSV / XLSX to CSV / Numbers to CSV / spreadsheet to CSV. | $0.005 |
SEE ALSO