Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man url-to-markdown

/url-to-markdown

agentutility / mediakit / url-to-markdown
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
uncategorized
STATUS
live
NAME
url-to-markdown url to markdown / webpage to markdown converter / article cleanup api
synonym alias of html-to-markdown — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/url-to-markdown
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

URL to Markdown / webpage to Markdown converter / article cleanup API. Fetches a public URL, strips boilerplate, and returns clean Markdown plus title and character counts.

INPUTrequest schema
propertytypedescriptionreq?
htmlstringRaw HTML to convert. Mutually exclusive with 'url' — supply one.optional
urlstringPage URL to fetch and convert. Server follows redirects. Mutually exclusive with 'html'.optional
include_linksbooleanKeep hyperlinks as Markdown [text](href). Default true. Set false for prose-only output.optional
include_imagesbooleanKeep images as Markdown ![alt](src). Default true.optional
user_agentstringOptional User-Agent header sent when fetching 'url'. Default is a generic browser UA.optional
OUTPUTresponse shape
fieldtypedescription
source_urlstring
titlestring
markdownstring
markdown_charsstring
html_charsstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/url-to-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 url-to-markdown tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
mediakiturltomarkdownurl-to-markdown
methods
POST
cluster
mediakit
price
$0.005 USDC per call
ADJACENTother endpoints in mediakit
endpointdescriptionprice
compress-pdfPDF compressor / PDF size reducer.$0.005
convert-html-to-markdownConvert HTML to Markdown.$0.005
excel-to-csvExcel (.xlsx / .xls) to CSV / TSV / JSON converter.$0.005
excel-to-google-sheetsConvert Excel to Google Sheets / XLSX to Google Sheets / spreadsheet import / Numbers to Google Sheets / Excel to gsheet.$0.005
html-markdownHTML to Markdown API / webpage to Markdown / clean page text extractor.$0.005
html-to-markdownConvert HTML to Markdown.$0.005
pdf-compressPDF compressor / shrink PDF / PDF size reducer / smaller PDF for email.$0.005
xlsx-to-csvExcel to CSV / XLSX to CSV / Numbers to CSV / spreadsheet to CSV.$0.005
SEE ALSO
agentutility · mediakit · x402 · mcp · llms.txt · registry.json · bazaar.x402.org