{"uid":"cap_qa1jYJef2CyQDfYGZew1F","slug":"rag-diet-url-to-markdown-converter-6caa717c","name":"RAG-Diet URL to Markdown Converter","description":"RAG-Diet Web Page to Clean Markdown Extractor ($0.001/page) — Strips 85-97% of HTML/DOM boilerplate into LLM-ready Markdown.","url":"https://rag-diet.agentdiet.dev/v1/url-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_Y7RogqK3M7ZtXK0if99Uo","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 web page by URL and converts it to clean, LLM-ready Markdown by stripping 85-97% of HTML/DOM boilerplate","exampleAgentPrompt":"Fetch the page at https://en.wikipedia.org/wiki/Retrieval-augmented_generation and convert it to clean markdown, stripping all the HTML boilerplate so I can drop it straight into my LLM context.","exampleUseCases":[{"title":"RAG pipeline web ingestion","prompt":"Pull down https://docs.python.org/3/library/asyncio.html and give me the clean markdown version — I want to feed it into my retrieval pipeline without wasting tokens on nav bars and footer junk."},{"title":"Research article summarization prep","prompt":"Grab https://arxiv.org/abs/2005.11401 and strip it down to just the readable markdown content so I can pass it to my summarizer without all the HTML overhead."},{"title":"Competitive intelligence content extraction","prompt":"Convert https://www.competitor.com/pricing to clean markdown for me — I need just the text and structure, none of the DOM clutter, so my agent can analyze their pricing tiers."}],"resultDescription":"A JSON object with a 'status' field ('ok'), a 'data' field containing the cleaned Markdown content of the page, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) — the percentage of HTML/DOM boilerplate that was removed.","failureModes":["URL is unreachable or returns a non-200 status — page cannot be fetched","URL points to a non-HTML resource (PDF, image) — conversion may fail or return raw bytes","Bot-detection or CAPTCHA on target site — content may be blocked","Payment not provided or insufficient — x402 payment required response","Malformed URL parameter — request rejected with validation error","Very large pages may hit timeout limits"],"whenToPreferThis":"Choose this endpoint when you need to feed web page content into an LLM or RAG pipeline and want to minimize token usage — it removes 85-97% of HTML/DOM noise, making it far more efficient than passing raw HTML. Prefer it over generic scrapers when your goal is LLM-readiness and compression ratio matters. It costs only $0.001 USDC per page via x402, making it economical for high-volume ingestion workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:35.820Z","isFirstParty":false,"canonicalSlug":"rag-diet-url-to-markdown-converter-6caa717c"}