{"uid":"cap_hkdhgd-PJ131MVoJM8fxm","slug":"agentdiet-html-to-markdown-converter-75b39a89","name":"AgentDiet HTML-to-Markdown Converter","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/html-to-markdown?utm_source=zero.xyz","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","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ULqSHdTyC5R8jYbOemEJX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and converts its HTML content to clean Markdown, compressing context by up to 91% for AI agent consumption","exampleAgentPrompt":"Fetch https://en.wikipedia.org/wiki/Artificial_intelligence and convert it to clean markdown so I can fit it in my context window without all the HTML bloat.","exampleUseCases":[{"title":"Webpage ingestion for RAG pipeline","prompt":"Grab https://docs.python.org/3/library/asyncio.html and convert it to compressed markdown — I need to stuff it into my RAG system without blowing up my token budget."},{"title":"Agent research with slim context","prompt":"Pull down https://news.ycombinator.com and give me the content as clean markdown so my agent can read it without wasting tokens on HTML tags."},{"title":"Distilling documentation for LLM chat","prompt":"Convert https://platform.openai.com/docs/overview to markdown so I can paste it into my chat context — I need it as compact as possible."}],"resultDescription":"A JSON object with a 'data' field containing the converted Markdown text, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved by stripping HTML down to clean Markdown.","failureModes":["Invalid or unreachable URL returns an error status","URL blocked by robots.txt or access controls may return empty or error","Extremely large pages may time out or return partial content","Malformed input schema (missing 'input' or 'method' field) returns validation error","Payment failure (insufficient USDC balance) blocks the request via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need to fetch a public URL and convert its HTML to LLM-friendly Markdown in a single call, especially when token budget is a concern. It is ideal for RAG ingestion, agent context window management, and any pipeline that needs to read web content without HTML overhead. Prefer it over generic scrapers when you specifically need Markdown output with built-in compression metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:53.232Z","isFirstParty":false,"canonicalSlug":"agentdiet-html-to-markdown-converter-75b39a89"}