{"uid":"cap_GBC3p4W45wyEIR8aFaSZ1","slug":"readmd-batch-url-to-markdown-converter-7c0ab54b","name":"Readmd Batch URL-to-Markdown Converter","description":"Readmd turns a URL into Markdown an LLM can use directly: the article without the page chrome, with metadata, an outline, a token estimate and optional RAG chunks. Plain HTTP fetch (no headless browser), robots.txt respected with the user-agent token `readmd`, a 3 MB page cap, redirects re-checked, private addresses refused. You pay only for pages that were actually read: every failure is returned unsettled.\n\nContent belongs to its publishers; Readmd fetches it on your request and does not store it. Pages that need JavaScript to render are not supported.","url":"https://readmd.canisell.xyz/v1/read/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["main","full"],"type":"string","description":"\"main\" (default): the article / main content only, without navigation, headers, footers, sidebars and cookie banners. \"full\": the whole page body."},"urls":{"type":"array","items":{"type":"string","maxLength":2048,"minLength":4},"maxItems":10,"minItems":1,"description":"Up to 10 public http(s) URLs, read in parallel."},"links":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}],"description":"Keep inline links as [text](url) in the Markdown. Default true; false saves tokens."},"images":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}],"description":"Keep images as ![alt](src). Default false."},"max_tokens":{"type":"integer","maximum":100000,"minimum":100,"description":"Truncate the Markdown to about this many tokens, at a paragraph boundary (`truncated` tells you). Default: no limit (400k characters max)."},"chunk_tokens":{"type":"integer","maximum":8000,"minimum":100,"description":"Also return `chunks`: the Markdown split at headings/paragraphs into pieces of at most about this many tokens, each with its heading path. For RAG."},"include_links":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}],"description":"Also return `links`: every link in the content as {url, text} (up to 500). Default false."}}},"responseSchema":{"type":"json","example":{"ok":2,"count":2,"failed":0,"results":[{"ok":true,"url":"https://www.rfc-editor.org/rfc/rfc9309.html","result":{"ms":457,"url":"https://www.rfc-editor.org/rfc/rfc9309.html","mode":"main","title":"RFC 9309: Robots Exclusion Protocol","robots":"allowed","source":"html","status":200,"outline":[{"text":"RFC 9309","level":1},{"text":"Robots Exclusion Protocol","level":1},{"text":"Abstract","level":2},{"text":"Status of This Memo","level":2},{"text":"Copyright Notice","level":2}],"markdown":"| RFC 9309 | Robots Exclusion Protocol (REP) | September 2022 |\n| --- | --- | --- |\n| Koster, et al. | Standards Track | [Page] |\n\n**Stream:**\n: Internet Engineering Task Force (IETF)\n\n**RFC:**\n: [9309](https://www.rfc-editor.org/rfc/rfc9309)\n\n**Category:**\n: Standards Track\n\n**Published:**\n: September 2022\n\n**ISSN:**\n: 2070-1721\n\n**Authors:**\n: M. Koster\nG. Illyes\nGoogle LLC\nH. Zeller\nGoogle LLC\nL. Sassman\nGoogle LLC\n\n# RFC 9309\n\n# Robots Exclusion Protocol\n\n## Abstract\n\nThis document specifies and extends the \"Robots Exclusion Protocol\" method originally defined by Martijn Koster in 1994 for service owners to control how content served by their services may be accessed, if at all, by automatic clients known as crawlers. Specifically, it adds definition language for the protocol, instructions for handling errors, and instructions for caching.\n\n## Status of This Memo\n\nThis is an Internet Standards Track document.\n\nThis document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.\n\nInformation about the current status of this document, any errata, and how to provide feedback on it may be obtained at [https://www.rfc-editor.org/info/rfc9309](https://www.rfc-editor.org/info/rfc9309).\n\n## Copyright Notice\n\nCopyright (c) 2022 IETF Trust and the persons identified as the document authors. All rights reserved.","metadata":{"lang":"en","title":"RFC 9309: Robots Exclusion Protocol","author":"Martijn Koster","description":"This document specifies and extends the \"Robots Exclusion Protocol\" method originally defined by Martijn Koster in 1994 for service owners to control how content served by their services may be accessed, if at all, by automatic clients known as crawlers. Specifically, it adds definition language for the protocol, instructions for handling errors, and instructions for caching."},"final_url":"https://www.rfc-editor.org/rfc/rfc9309.html","truncated":true,"fetched_at":"2026-11-02T09:19:37.680Z","tokens_est":396,"word_count":226,"content_type":"text/html"}}]}},"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_1av1KkArk2FEasBJFWOXd","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 up to 10 URLs in parallel into clean LLM-ready Markdown, stripping page chrome and optionally returning metadata, outline, token estimate, and RAG chunks","exampleAgentPrompt":"Fetch these three article URLs for me and convert them to clean markdown — just the main article content, no sidebars or navigation — and split each one into RAG chunks of about 500 tokens each: https://example.com/article1, https://example.com/article2, https://example.com/article3.","exampleUseCases":[{"title":"Research digest from multiple sources","prompt":"I need to read these 5 blog posts for my research — can you grab the main article content from each URL and return clean markdown with an outline so I can quickly scan what each one covers? https://blog.example.com/post1, https://blog.example.com/post2, https://blog.example.com/post3, https://blog.example.com/post4, https://blog.example.com/post5"},{"title":"RAG knowledge base ingestion","prompt":"Take these 8 documentation URLs and fetch the full page content as markdown, then split each page into chunks of at most 1000 tokens so I can index them in my vector database for retrieval-augmented generation."},{"title":"Token-limited context injection","prompt":"Pull the main article content from https://news.example.com/story and https://blog.example.com/analysis and truncate each to 2000 tokens — I need them to fit inside my LLM prompt without overflowing the context window."}],"resultDescription":"A JSON object with an ok count, failed count, and a results array — one entry per URL — each containing the cleaned Markdown text, page title, document outline (headings with levels), robots.txt status, HTTP status code, source format, latency in ms, extraction mode used, truncation flag, optional RAG chunks (each with heading path and token count), and optional extracted links as {url, text} pairs. Failed URLs are returned with error details and no charge is incurred for them.","failureModes":["URL requires JavaScript rendering — not supported, returns error","Private or loopback IP address refused","Page exceeds 3 MB cap — truncated or rejected","robots.txt disallows the readmd user-agent — returned as disallowed with no charge","Redirect target is a private address — refused","HTTP non-200 response from origin — returned as failed with no charge","Invalid URL format or non-http(s) scheme — validation error","Timeout fetching slow-loading pages"],"whenToPreferThis":"Choose this endpoint when you need to extract clean article text from multiple URLs in a single request and want LLM-ready Markdown with structured metadata (title, outline, token count) rather than raw HTML. It is especially well-suited for RAG pipelines needing pre-chunked content, or for injecting web content directly into LLM prompts with token budgets. Prefer it over single-URL alternatives when processing 2–10 pages in parallel. It is not appropriate for JavaScript-heavy SPAs, pages behind authentication, or full-site crawls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:32:51.414Z","isFirstParty":false,"canonicalSlug":"readmd-batch-url-to-markdown-converter-7c0ab54b"}