Go to example tasks

Crawl Documentation to Markdown for RAG and LLMs

Point it at a docs site and get every page as clean Markdown, ready for a RAG index or an LLM prompt. Main content only, with headings, tables and code blocks kept. Each page also comes in token-sized chunks with its heading path, plus word and token counts. Uses sitemaps, stays inside the start path, and can skip pages that did not change since the last run.

Try for free
Website Content Crawler to Markdown for AI, LLM & RAG
Website Content Crawler to Markdown for AI, LLM & RAGdottti/web-to-markdown
Status
URL
Title
Language
+6 fields
Text
Number
Boolean
List
Object

Input

Page URLs (no crawling):https://en.wikipedia.org/wiki/Retrieval-augmented_generation
Start URLs (crawl the site)
url:https://crawlee.dev/js/docs/quick-start
Max pages per start URL:10
Max link depth:2
Use sitemaps:true
Stay inside the start URL's folder:true
Include subdomains:false
Render JavaScript:auto
Browser wait (seconds):8
Chunk size for RAG (tokens):512
Chunk overlap (tokens):64
Keep images in Markdown:true
Keep link URLs in Markdown:true
Add a list of all links:false
Read PDF links:true
Respect robots.txt:true
Skip duplicate pages:true
Only new or changed pages (monitor mode):false
Monitor name:default
Max parallel requests:10
Max parallel requests per site:4
Request timeout (seconds):30
Retries per page:2
Automatic proxy fallback:true
Allow residential proxy as last step:false

Output fields

Status
URL
Title
Language
Published
Words
Tokens
Fetched with
Markdown
Error

How it works

Sign up on Apify or log in

The Website Content Crawler to Markdown for AI, LLM & RAG Actor is ready to run with the inputs already set for "Crawl Documentation to Markdown for RAG and LLMs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Crawl Documentation to Markdown for RAG and LLMs" task

The Website Content Crawler to Markdown for AI, LLM & RAG Actor will start running based on the input automatically. You can also change all the input fields, like page urls (no crawling), start urls (crawl the site), and more, to match your specific use case.

Receive the "Crawl Documentation to Markdown for RAG and LLMs" 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 status, URL, title, 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 Documentation to Markdown for RAG and LLMs" task via API.

Image

Integrate "Crawl Documentation to Markdown for RAG and LLMs" into your workflow

Connect "Crawl Documentation to Markdown for RAG and LLMs" 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

The task provides output fields including status, URL, title, language, published date, word count, token count, fetch method, Markdown content, and any errors encountered.

The Markdown output includes the main content with headings, tables, code blocks, links, and omits menus, footers, and popups.

The task can skip URLs that have not changed since the last run and can be set to monitor for new or changed pages.

This task can be scheduled to run automatically in the Apify Console.

The task supports extracting data from web pages and PDFs, converting them into clean Markdown format.