{"uid":"cap_bbJm-F-xbEKTVCf0Y4DQC","slug":"fetchharbor-html-to-markdown-converter-a4ac20e6","name":"FetchHarbor HTML-to-Markdown Converter","description":"Convert a supplied HTML string into deterministic, LLM-ready Markdown. Preserves headings, links, lists, emphasis, and code without fetching a URL or invoking an AI model. Input is bounded to 2,000,000 characters.","url":"https://fetchharbor.benlab.download/html-to-md","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["html"],"properties":{"html":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","markdown","character_count","truncated"],"properties":{"status":{"type":"string","const":"success"},"markdown":{"type":"string"},"truncated":{"type":"boolean"},"character_count":{"type":"integer","minimum":0}},"additionalProperties":false}}}}},"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_cmJRNOC0AHS76IvBmofEJ","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 a raw HTML string into clean, deterministic, LLM-ready Markdown without fetching URLs or invoking AI models.","exampleAgentPrompt":"Convert this HTML snippet into clean Markdown for me: '<h1>Hello World</h1><p>This is a <strong>test</strong> with a <a href=\"https://example.com\">link</a>.</p>'","exampleUseCases":[{"title":"Preprocessing scraped web content for RAG","prompt":"I just scraped this HTML from a product page and need it converted to Markdown so I can chunk it and embed it into my vector database — here's the HTML: '<article><h2>Product Overview</h2><ul><li>Fast</li><li>Reliable</li></ul></article>'"},{"title":"Cleaning newsletter HTML for LLM summarization","prompt":"I have the raw HTML of an email newsletter and I need it turned into plain Markdown before I send it to a language model for summarization — can you do that with this HTML string?"},{"title":"Converting CMS HTML output for documentation","prompt":"Our CMS exports blog posts as HTML and I need to convert this one to Markdown so I can store it in our docs repo: '<h1>Getting Started</h1><p>Follow these <strong>steps</strong> to begin.</p><code>npm install</code>'"}],"resultDescription":"Returns a JSON object with a 'status' field ('success'), a 'markdown' string containing the converted Markdown output, an integer 'character_count' indicating the length of the output, and a boolean 'truncated' flag indicating whether the input was clipped at the 2,000,000 character limit.","failureModes":["Missing 'html' query parameter — request fails validation","Input exceeds 2,000,000 characters — output is truncated and truncated flag set to true","Malformed or unparseable HTML — may produce partial or empty markdown output","Payment failure via x402 protocol — call does not execute"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, reproducible HTML-to-Markdown conversion without any network fetching or AI inference overhead. It is ideal for preprocessing pipelines where consistency and auditability matter — such as RAG ingestion, document chunking, or LLM prompt construction — and where you already have the HTML string in hand. Prefer alternatives if you need to fetch a live URL first, or if you need AI-powered semantic cleanup beyond structural conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:48.449Z","isFirstParty":false}