Website to Markdown: Crawl a Whole Site into Clean Pages
Pricing
from $1.25 / 1,000 page converteds
Website to Markdown: Crawl a Whole Site into Clean Pages
Website to Markdown crawler: give it one URL and get every page of the site, or of one docs section, as clean Markdown for LLMs and RAG. Sitemap and link discovery, robots.txt obeyed, plain HTTP with no browser, billed per page converted.
Pricing
from $1.25 / 1,000 page converteds
Rating
0.0
(0)
Developer
Adriana Voss
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Give it one URL and get every page of that website, or of one section of it, as clean Markdown, one row per page. A website to Markdown crawler for LLM context, RAG indexes and docs-to-knowledge-base jobs: it reads the site's own sitemap, follows its links, obeys robots.txt, and turns each page into Markdown with the menus, footers, cookie banners and scripts removed and the code blocks kept as fenced code. Plain HTTP, no browser, so it is fast and cheap on server-rendered sites, and it says so plainly (and charges nothing) on a site that only renders in JavaScript.
Who uses it
- RAG and agent builders loading a product's docs, a help centre or a blog into a vector store.
- Developers who want a library's documentation as Markdown files to paste into a model's context.
- Content and SEO teams taking a text snapshot of a site section before a migration.
Related actors: to convert a list of URLs you already have, use URL to Markdown. To list a site's URLs without converting them, use Sitemap URL Discovery. This actor does both for one site: it finds the pages and converts them.
How to use
- In the Apify Console. Open the actor page and click Start — the
startUrlsfield is already pre-filled with a working example. Results land in the run's dataset as soon as each item is found. - Via the API. Call it directly with a POST request — no Console needed once you have an API token:
curl "https://api.apify.com/v2/acts/accountable_eel~site-to-markdown/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-X POST \-H "Content-Type: application/json" \-d '{"startUrls":["https://docs.python.org/3/library/"]}'
- On a schedule. Save this actor as an Apify Task with the input you want, then add a Schedule (hourly, daily, weekly) so it runs on its own — no server of your own required.
Input
{"startUrls": ["https://docs.python.org/3/library/"]}
One per line. The crawl stays on that site and inside that folder: a homepage crawls the whole site, https://docs.example.com/guide/ crawls only the guide. Pages come from the site's own sitemap first, then from links, and robots.txt is obeyed. Accepted formats: https://docs.example.com/, https://example.com/blog/, example.com.
What gets crawled. The crawl stays on the host you gave and inside the folder of the URL you gave: https://docs.example.com/guide/ (or https://docs.example.com/guide/intro.html) reads only /guide/..., a homepage reads the whole site. The start page is read first, then the pages listed in the site's sitemap that fall inside that folder, then pages reached by links, nearest first. maxPages (default 50, up to 500) counts converted pages, so it is also the most you can be charged per website; for a bigger site, give one line per section. A single startUrl string is accepted in place of the startUrls list.
What is left out, and never charged. Pages that robots.txt disallows (they are not requested at all), files that are not HTML, a second copy of a page already returned (same canonical URL or same text), pages that answer with an error or a bot-protection page, and pages with no readable content in their raw HTML.
Output
One row per page, for example:
| url | title | wordCount | lang | extractedBy | depth | discoveredVia | markdown |
|---|---|---|---|---|---|---|---|
| https://docs.python.org/3/library/ | The Python standard library | 1903 | en | main-content | 0 | start | # The Python standard library ... |
| https://docs.python.org/3/library/intro.html | Introduction | 1016 | en | readability | 1 | link | # Introduction ... |
| https://docs.python.org/3/library/json.html | json — JSON encoder and decoder | 3701 | en | readability | 1 | link | # json — JSON encoder and decoder ... |
Every row also carries site, startUrl, pageCount (pages returned for that site in this run), pagesSkipped, truncated, stoppedReason, description, publishedAt, statusCode and scrapedAt. A value the page does not give (description, lang, publishedAt) is null, never an empty string. depth is null for a page that came from the sitemap.
All columns:
| query | found | status | site | startUrl | pageCount | pagesSkipped | truncated | stoppedReason | pages | url | title | description | lang | markdown | wordCount | publishedAt | extractedBy | statusCode | depth | discoveredVia | scrapedAt |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| https://docs.python.org/3/library/ | true | OK | <all pages (full list)> | <description / excerpt> | <published date (if given by the page)> | 1970-01-01T00:00:00.000Z |
A website where no page could be converted comes back as one row with "found": false and the reason (it does not exist, robots.txt disallows the start URL, the site answered with a block page, or the site is rendered by JavaScript), and is never charged. Pages that were tried and not returned are listed with their reason in the run's OUTPUT key-value record, next to the reason a crawl stopped early (MAX_PAGES, BLOCKED, TOO_MANY_UNREADABLE_PAGES, TIME_LIMIT).
When a site needs a real browser
This actor never runs JavaScript. A site whose HTML is an empty shell that a script fills in later has nothing to convert over plain HTTP: those pages are skipped and not charged, and the crawl gives up on such a site after a bounded number of tries rather than requesting every URL in its sitemap. For those sites use a browser-based crawler such as Website Content Crawler.
Pricing
Pay-per-event. A flat per-run fee covers session/proxy warmup; you're billed
per item only when data is actually found and returned — see
.actor/pay_per_event.json for exact prices. A miss is never charged.
Example runs
Paste any of these into the Input tab and press Start. All three return rows with no key, no token and no account of your own beyond an Apify login.
One section of a documentation site. The pre-filled example: the first 5 pages of the Python standard library reference.
{"startUrls": ["https://docs.python.org/3/library/"],"maxPages": 5}
A whole small site, from its homepage. The Python Enhancement Proposals site, 25 pages.
{"startUrls": ["https://peps.python.org/"],"maxPages": 25}
Two sections in one run, each with its own page limit. One line per section; maxPages applies to each.
{"startUrls": ["https://docs.python.org/3/tutorial/","https://docs.python.org/3/howto/"],"maxPages": 20}
Use it from Clay, n8n, Make, or an AI agent
This actor runs synchronously over plain HTTP — call it directly from a script, a workflow tool, or an AI agent, no Apify Console needed once you have an API token.
curl "https://api.apify.com/v2/acts/accountable_eel~site-to-markdown/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-X POST \-H "Content-Type: application/json" \-d '{"startUrls":["https://docs.python.org/3/library/"]}'
n8n. Add an HTTP Request node: Method POST, URL https://api.apify.com/v2/acts/accountable_eel~site-to-markdown/run-sync-get-dataset-items?token=<YOUR_TOKEN>, Body Content Type JSON, JSON Body {"startUrls":["https://docs.python.org/3/library/"]} (swap in an expression from an earlier node for a real value).
Clay. Add an "HTTP API" column: Method POST, URL https://api.apify.com/v2/acts/accountable_eel~site-to-markdown/run-sync-get-dataset-items?token=<YOUR_TOKEN>, Body {"startUrls":["{{website}}"]}, mapping the row's website into the startUrls array.
MCP. In Claude, Cursor, or any MCP client with the Apify MCP server, ask for "website to markdown crawler" — the agent will find and run this actor.