{"uid":"cap_9uXnEO9vU2gV5wMlmtUx2","slug":"html-to-markdown-converter-234801a9","name":"HTML to Markdown Converter","description":"Convert HTML to tidy markdown ($0.005 USDC via x402). Pass html (string) and/or url (public https to fetch). At least one required; if both, prefers html and warns. URL fetches use the same allowlist as WELL-002 (https only — http/file/data/localhost/private IPs rejected; 1 MB body, ~10s timeout, max 5 redirects). Returns JSON { source, url?, final_url?, content_type?, markdown, warnings }. Provided as is, with no warranty or guarantee of accuracy or fitness. Nothing is stored.","url":"https://well-004-html-to-markdown.mmelnyk2000.workers.dev/api/html-to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"https URL to fetch HTML from and convert. http/file/data/localhost/private IPs rejected."},"html":{"type":"string","description":"HTML string to convert to markdown. Preferred when both html and url are set."}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","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_k6iMkxhZyKyEWS7K8o6XD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts HTML content (provided directly or fetched from a public URL) into clean, tidy Markdown text","exampleAgentPrompt":"Can you fetch https://en.wikipedia.org/wiki/Markdown and convert the page HTML into clean markdown for me?","exampleUseCases":[{"title":"Web article to markdown pipeline","prompt":"Grab the HTML from https://blog.example.com/my-article and convert it to markdown so I can paste it into my notes app."},{"title":"Inline HTML snippet cleanup","prompt":"I have this messy HTML snippet — '<h1>Hello</h1><p>World <b>bold</b></p>' — can you convert it to clean markdown?"},{"title":"Documentation ingestion for RAG","prompt":"Fetch https://docs.someservice.io/api-reference and turn the page into markdown so I can index it for our internal knowledge base."}],"resultDescription":"A JSON object containing: 'source' (whether input came from 'html' or 'url'), optionally 'url' and 'final_url' (after redirects), 'content_type' of the fetched page, 'markdown' (the converted markdown string), and 'warnings' (array of any issues encountered, e.g. if both html and url were supplied).","failureModes":["Non-HTTPS or private/local URLs (http, file, data, localhost, private IP ranges) are rejected with an error","URL fetch timeout after ~10 seconds returns an error","Response body exceeding 1 MB is rejected","More than 5 redirects causes a fetch failure","If both html and url are provided, html is used and a warning is returned — url is ignored","Malformed or empty HTML may produce minimal or empty markdown output"],"whenToPreferThis":"Choose this endpoint when you need to programmatically convert HTML content — either inline or from a public web page — into clean Markdown. It is ideal for content ingestion pipelines, documentation scraping for RAG systems, or cleaning up HTML for storage in markdown-based tools. Prefer this over generic web scrapers when your goal is specifically markdown output rather than raw text or structured data extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T23:28:24.270Z","isFirstParty":false,"canonicalSlug":"html-to-markdown-converter-234801a9"}