{"uid":"cap_kVaVcE4rDJzo_tdEC2riX","slug":"sitecheck-html-to-clean-markdown-converter-26cb6a74","name":"SiteCheck HTML to Clean Markdown Converter","description":"Converts raw HTML you send (up to 500 KB) to GitHub-flavoured Markdown: headings, paragraphs, links, images, lists, code blocks, quotes, bold and italic. Scripts, styles, navigation, footers, forms and comments are removed; tables are flattened to text. Relative links need a base URL to become absolute.","url":"https://api.fadeandco.workers.dev/api/agent-intel/html-dom-to-clean-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"HTML text, 1 to 500000 characters"},"baseUrl":{"type":"string","description":"Optional page address used to resolve relative links"}}},"responseSchema":{"type":"json","example":{"source":"the HTML you sent","baseUrl":"https://example.com/","markdown":"## Title\n\nSee [the docs](https://example.com/docs).","checkedAt":"2026-10-23T09:35:23.080Z","characters":51}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YIRdlFiy-CW1BMknLRpu4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML (up to 500 KB) into clean GitHub-flavoured Markdown, stripping scripts, styles, nav, footers, forms, and comments while resolving relative links to absolute URLs.","exampleAgentPrompt":"Take this raw HTML from the product page and convert it to clean markdown — use https://example.com/products as the base URL so relative links become absolute.","exampleUseCases":[{"title":"Prep scraped HTML for LLM context","prompt":"I just fetched the raw HTML of this article page — can you convert it to clean markdown and strip out all the nav, ads, and scripts so I can feed it to the LLM? Base URL is https://techcrunch.com/2024/01/15/ai-news/."},{"title":"Resolve relative links in a fetched page","prompt":"Convert this HTML blob to markdown for me — the page came from https://docs.myapp.io/guides/ so use that as the base URL to make all the relative links absolute."},{"title":"Clean HTML email template for readability","prompt":"Here's the raw HTML of a newsletter I received — strip out all the styling, navigation, and tracking junk and give me just the readable markdown content."}],"resultDescription":"A JSON object containing the original HTML source, the optional base URL used, the converted GitHub-flavoured Markdown string (with headings, paragraphs, links, images, lists, code blocks, blockquotes, bold, and italic preserved), a checkedAt ISO timestamp, and the character count of the resulting markdown.","failureModes":["HTML input exceeds 500,000 characters — request rejected","Missing or empty html field — validation error returned","Malformed base URL causes relative link resolution to fail silently or error","Extremely nested or malformed HTML may produce garbled markdown output","Tables are flattened to plain text, losing tabular structure"],"whenToPreferThis":"Choose this endpoint when you have raw HTML that needs to be sanitised and converted to human- or LLM-readable markdown, especially when you want boilerplate (scripts, styles, nav, footers, forms, comments) stripped away. It is ideal for preprocessing scraped web pages before passing content to a language model, or when relative links need resolving against a known base URL. Prefer it over generic HTML-strippers when GitHub-flavoured Markdown formatting (headings, code blocks, lists, images) must be preserved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:43:05.157Z","isFirstParty":false,"canonicalSlug":"sitecheck-html-to-clean-markdown-converter-26cb6a74"}