Go to example tasks

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.

Try for free
URL to Markdown API - Web Pages to Clean Text for LLMs
URL to Markdown API - Web Pages to Clean Text for LLMsrocketyard/web-page-to-markdown
URL
Title
Site name
Language
+4 fields
Text
Number
Boolean
List
Object

Input

Start URLs(required)
url:https://docs.python.org/3/tutorial/index.html
Crawl the website:true
Link pattern (regex):docs\.python\.org/3/tutorial/[a-z]+\.html$
Output formats:markdown
Max pages to visit:30
Max results:30

Output fields

URL
Title
Site name
Language
Word count
Token estimate
Published at
Description

How it works

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.

Image

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

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

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.