{"uid":"cap_EkgRTU1owdEV31OVYYH5Y","slug":"agentreader-html-to-markdown-cleaner-56aae1b5","name":"AgentReader HTML-to-Markdown Cleaner","description":"Convert raw HTML you already have into clean markdown. Send JSON {\"html\": \"...\"} and get back markdown with scripts, styles and boilerplate stripped. Cheaper than /read when the agent has already fetched the page.","url":"https://agentreader.dev/clean","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"Raw HTML string to convert to markdown"}}},"responseSchema":null,"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":"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_FaEaTqVwKwmntNx9sDi7c","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 raw HTML strings into clean, LLM-ready markdown by stripping scripts, styles, and boilerplate","exampleAgentPrompt":"I already fetched the HTML for that article — can you convert it to clean markdown with all the scripts, styles, and nav clutter stripped out?","exampleUseCases":[{"title":"Clean fetched HTML before LLM summarization","prompt":"I've already downloaded the HTML for this news article — strip the scripts and boilerplate and give me back clean markdown so I can summarize it."},{"title":"Convert product page HTML to structured markdown","prompt":"I have the raw HTML from an e-commerce product page I scraped earlier. Can you convert it to clean markdown, removing all the ads and navigation junk?"},{"title":"Prepare HTML content for embedding pipeline","prompt":"I have a bunch of raw HTML I collected from documentation pages — convert each one to clean markdown so I can chunk and embed it into my vector store."}],"resultDescription":"A cleaned markdown string with scripts, stylesheets, navigation elements, ads, and other boilerplate removed, leaving only the meaningful textual content of the original HTML page.","failureModes":["Malformed or empty HTML string returns an error response","Extremely large HTML payloads may be rejected or truncated","HTML with no meaningful text content may return minimal or empty markdown","Non-HTML input (e.g. plain text or binary) may produce unexpected output"],"whenToPreferThis":"Use this endpoint when your agent has already fetched the raw HTML of a page and only needs the conversion step — it is cheaper than a full fetch-and-clean endpoint like /read. Ideal for pipelines where HTTP fetching is handled separately or you need to process stored HTML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:35.931Z","isFirstParty":false}