{"uid":"cap_IyWU5J1ktUn2OweWHWReO","slug":"html-to-markdown-converter-44b41fbc","name":"HTML to Markdown Converter","description":"Call when an agent already has HTML and needs clean markdown. No network. Optional url is a base for relative links only. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/html-to-md first.","url":"https://agentshelf.syntexa.ch/v1/html-to-md?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","examples":["https://example.com/page"],"maxLength":2048,"description":"Optional base URL used only to resolve relative links. Omit it when the HTML has no relative URLs."},"html":{"type":"string","examples":["<h1>Hello</h1><p>World</p>"],"maxLength":200000,"minLength":1,"description":"HTML document to convert to markdown. The handler does not fetch it."}}},"responseSchema":null,"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_WnoCYSBbkOFO3n5qPMLEg","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 content to clean markdown format, with optional base URL for resolving relative links","exampleAgentPrompt":"I already have the raw HTML for this article — can you convert it to clean markdown? Here's the HTML: <html><body><h1>Hello</h1><p>World</p></body></html>","exampleUseCases":[{"title":"Clean scraped article for LLM processing","prompt":"I scraped this page's HTML and need it as clean markdown before feeding it to my summarizer — here's the full HTML blob: <html><body><h1>Breaking News</h1><p>Details here...</p></body></html>"},{"title":"Convert CMS export to markdown","prompt":"My CMS exported this content as HTML and I need it in markdown format. Can you convert this HTML for me: <div><h2>Product Update</h2><ul><li>Feature A</li><li>Feature B</li></ul></div>"},{"title":"Normalize HTML email to markdown","prompt":"I have the HTML source of an email newsletter and want it converted to plain markdown so I can store it cleanly. Here's the HTML: <html><body><h1>Weekly Digest</h1><p>This week's highlights...</p><a href='/stories/1'>Read more</a></body></html> — use https://newsletter.example.com as the base URL for relative links."}],"resultDescription":"Returns clean markdown text derived from the provided HTML input, with relative links resolved against the optional base URL if supplied. No network requests are made; the conversion is purely local.","failureModes":["Empty or missing html field returns an error (minLength:1 enforced)","HTML exceeding 200,000 characters is rejected","Malformed or unparseable HTML may produce degraded or partial markdown output","Invalid or malformed base URL may cause relative link resolution to fail silently"],"whenToPreferThis":"Use this endpoint when you already have the raw HTML string in memory and need it converted to markdown without any network fetch — it is faster and cheaper than endpoints that fetch URLs themselves. Prefer the free sandbox endpoint POST /v1/sandbox/html-to-md first; use this paid endpoint only when the sandbox is unavailable or rate-limited.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:38:06.975Z","isFirstParty":false,"canonicalSlug":"html-to-markdown-converter-44b41fbc"}