{"uid":"cap_4qlc_KxnrqznOGywG2Xil","slug":"agent-tools-html-to-markdown-converter-6237b2c1","name":"Agent Tools HTML-to-Markdown Converter","description":"Pay-per-call utilities for AI agents. Payments in USDC on Base via x402 v2; no accounts or API keys. Failed requests are never charged. No endpoint performs server-side fetching of caller-supplied URLs.","url":"https://agent-tools-x402.t6y11a.workers.dev/api/markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"optional source URL used as link base"},"html":{"type":"string","description":"raw HTML of the page (max 1M chars)"}}},"responseSchema":{"type":"json","example":{"title":"Example article","excerpt":"A short summary","markdown":"# Example article\n\nBody text...","markdownChars":1204}},"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_C0eSHGCWLtQCZmrolSStf","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 into clean Markdown, extracting title, excerpt, and formatted body text.","exampleAgentPrompt":"I have the raw HTML of a blog article — can you convert it to clean Markdown and pull out the title and a short excerpt? The page's original URL is https://example.com/blog/my-post so links resolve correctly.","exampleUseCases":[{"title":"Article ingestion for RAG pipeline","prompt":"I've scraped the HTML from this news article and need it converted to clean Markdown with the title and excerpt extracted so I can store it in my vector database — the source URL is https://techcrunch.com/2024/05/01/some-story."},{"title":"Readable summary from scraped product page","prompt":"Here's the raw HTML from an e-commerce product page — convert it to Markdown and pull out the title and excerpt so I can summarise it for the user. The page URL was https://shop.example.com/products/widget."},{"title":"Documentation preprocessing for LLM context","prompt":"I grabbed the HTML source of a docs page and need it turned into Markdown so I can feed it to an LLM — can you convert it and give me the character count so I know if it fits in context? Source URL is https://docs.mylib.io/guide/getting-started."}],"resultDescription":"A JSON object containing the page title, a short excerpt summary, the full page body rendered as Markdown, and the total character count of the Markdown output.","failureModes":["HTML exceeds 1 million character limit — request rejected","Malformed or empty HTML input — may return empty markdown fields","No recognisable article structure in HTML — title and excerpt may be empty strings","Network or worker timeout for very large HTML payloads","Payment failure via x402 — request not charged and not processed"],"whenToPreferThis":"Choose this endpoint when you already hold raw HTML and need a clean Markdown representation without making any additional network requests. It is ideal for post-scrape processing pipelines where an agent has fetched a page and now needs structured, LLM-friendly text. Prefer it over generic HTML strippers when you also need a title and excerpt alongside the Markdown body. Note: the service does not fetch URLs itself — you must supply the HTML directly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:41.408Z","isFirstParty":false,"canonicalSlug":"agent-tools-html-to-markdown-converter-6237b2c1"}