{"uid":"cap_hsCPIQu57jBZ_r4R3EgGF","slug":"html-to-markdown-converter-b3a580a9","name":"HTML to Markdown Converter","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/html-to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{"url":{"type":"string","description":"Page URL to fetch and convert. Server follows redirects. Mutually exclusive with 'html'."},"html":{"type":"string","description":"Raw HTML to convert. Mutually exclusive with 'url' — supply one."},"user_agent":{"type":"string","description":"Optional User-Agent header sent when fetching 'url'. Default is a generic browser UA."},"include_links":{"type":"boolean","description":"Keep hyperlinks as Markdown [text](href). Default true. Set false for prose-only output."},"include_images":{"type":"boolean","description":"Keep images as Markdown ![alt](src). Default true."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"title":{"type":"string"},"markdown":{"type":"string"},"html_chars":{"type":"integer"},"source_url":{"type":"string"},"markdown_chars":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"title":"Markdown","markdown":"# Markdown\n\nMarkdown is a lightweight markup language...","html_chars":32418,"source_url":"https://en.wikipedia.org/wiki/Markdown","markdown_chars":5421}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zRARhbQcb8QoNICBuIRYF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a webpage URL or raw HTML string into clean Markdown text, preserving links and images optionally","exampleAgentPrompt":"Can you fetch the Wikipedia page for Markdown at https://en.wikipedia.org/wiki/Markdown and convert it to Markdown — keep the links but drop the images?","exampleUseCases":[{"title":"Digest article content for RAG pipeline","prompt":"Take this blog post at https://blog.example.com/ai-trends-2025 and convert it to Markdown so I can chunk and embed it into my knowledge base — keep the links but skip images."},{"title":"Archive a documentation page offline","prompt":"Grab the docs page at https://docs.stripe.com/api and convert it to clean Markdown I can save locally — include both links and images."},{"title":"Process raw HTML snippet from scraper","prompt":"I've got this raw HTML from a scraper — can you convert it to Markdown for me? Here's the HTML: <html><body><h1>Hello</h1><p>This is a <a href='https://example.com'>test</a>.</p></body></html>. Prose only, no links."}],"resultDescription":"Returns a JSON object containing the extracted page title, the full Markdown-formatted content, the original source URL, the character count of the original HTML, and the character count of the resulting Markdown.","failureModes":["URL is unreachable or returns a non-200 status — conversion fails with fetch error","Provided URL redirects to a login wall or paywalled content — returns empty or login-page markdown","Mutually exclusive fields 'url' and 'html' both provided — validation error","Neither 'url' nor 'html' provided — missing required field error","HTML is malformed or empty — may return empty or minimal markdown output"],"whenToPreferThis":"Use this endpoint when you need to convert a live webpage or raw HTML into Markdown quickly and cheaply ($0.005/call) without managing a headless browser or HTML parser yourself. Ideal for RAG pipelines, documentation archiving, content ingestion, and any workflow that needs readable structured text from web pages. Prefer this over building custom parsers when you want link/image control and a clean title+body output with no signup friction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:47:38.345Z","isFirstParty":false,"canonicalSlug":"html-to-markdown-converter-b3a580a9"}