Crawl a documentation site into one Markdown dataset
Turn a whole section of a documentation site into one Markdown dataset for a knowledge base. The task starts at one page, follows same-site links that match a pattern and returns one record per page: main content as Markdown, title, headings, links and a content hash. The example input crawls the Python tutorial.
Input
Output fields
Sign up on Apify or log in
The URL to Markdown API - Web Pages to Clean Text for LLMs Actor is ready to run with the inputs already set for "Crawl a documentation site into one Markdown dataset". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Crawl a documentation site into one Markdown dataset" task
The URL to Markdown API - Web Pages to Clean Text for LLMs Actor will start running based on the input automatically. You can also change all the input fields, like start urls, crawl the website, and more, to match your specific use case.
Receive the "Crawl a documentation site into one Markdown dataset" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, title, site name, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Crawl a documentation site into one Markdown dataset" task via API.

Integrate "Crawl a documentation site into one Markdown dataset" into your workflow
Connect "Crawl a documentation site into one Markdown dataset" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
Replace the start URL of the documentation site crawl task and set linkPattern to a regular expression for that section. The crawl stays on the same site and follows only links that match.
The documentation site crawl task stops at maxPagesPerCrawl pages or maxItems records, whichever comes first, and it honours robots.txt. Both limits are in the task input.
The documentation site crawl task is billed per page delivered, with a small start fee per run and no subscription. URLs that fail return a free error item.