Apify Website Content Crawler for RAG: Feed Sites to LLMs (2026)
The Apify Website Content Crawler is the flagship actor for feeding websites to LLMs: it renders pages, strips navigation/footers/ads, and outputs clean markdown or plain text — exactly the format RAG pipelines and AI training want.
While the generic scrapers extract product and listing data, this one extracts *content*: docs, articles, knowledge bases, entire sites as LLM-ready text. For AI training data use cases see [Apify for AI training data](/blog/apify-for-ai-training-data); this is the pipeline how-to.
- Outputs clean markdown/plain text per page — nav, ads and boilerplate stripped automatically
- Renders JavaScript — works on React/Next sites, docs platforms and SPAs
- The RAG pipeline: crawl → chunk → embed → vector store — content-side solved by one actor
- Use it for chatbot knowledge bases, competitor content analysis, site migrations
Why this actor is the RAG standard
The hard part of RAG ingestion is not downloading pages — it is turning messy HTML into clean content. The Website Content Crawler solves the extraction: main-content detection, markdown conversion, metadata (title, URL, section) preserved per page.
It renders JavaScript properly — modern docs sites, SPAs and client-rendered content come back as full text, not empty shells.
Setup: site to clean text in 10 minutes
- Apify Store → Website Content Crawler — input the start URL
- Options crawl depth, include/exclude URL patterns (limit to /docs or /blog), max pages
- Output format markdown for RAG (structure preserved) or plain text for raw corpus
- Test on 20 pages — inspect the cleanliness of the extraction — Test on 20 pages — inspect the cleanliness of the extraction
- Full run — sitemap-scale crawls run unattended — Full run — sitemap-scale crawls run unattended
Apify
4.7Verified partnerWeb scraping and automation platform — Free / $49/mo Starter
The RAG pipeline end to end
The full path: Website Content Crawler → markdown per page → chunk (by heading or token window) → embed with your embedding model → vector store (Pinecone, Weaviate, pgvector) → retrieval in your chat/agent.
The crawler covers the extraction half — which is the half that usually breaks. Chunking and embedding are library calls; clean input is what makes them work.
Keep the per-page metadata (URL, title) through chunking — citations in your chatbot's answers are the difference between "useful" and "trustworthy".
Apify
4.7Verified partnerWeb scraping and automation platform — Free / $49/mo Starter
Use cases beyond RAG
Where the same extraction earns its keep:
- Chatbot knowledge base: crawl your own docs/help center — the bot answers from your content, not hallucinations
- Competitor content analysis: crawl a rival's blog — their whole content library as searchable text for gap analysis
- Site migration: full-content export before replatforming — nothing lost in the move
- SEO content audit: your own site as structured text — thin pages and duplicate content surface in the data
- LLM fine-tuning corpus: domain-specific text at corpus scale
For the training-data angle and dataset-scale considerations, see Apify for AI training data.
Output formats and scheduling
Markdown preserves headings, lists and links — best for RAG where structure aids chunking. Plain text for language-model corpora where structure adds noise. HTML output exists when you need layout preserved.
Scheduled crawls keep the knowledge base fresh: re-crawl docs monthly, diff the dataset, re-embed changed pages only — a living RAG source instead of a frozen snapshot.
Apify
4.7Verified partnerWeb scraping and automation platform — Free / $49/mo Starter
Respect and limits
Crawling your own properties: unrestricted use — it is your content. Crawling third-party sites for analysis: keep to public pages, reasonable volume, and never republish extracted content as your own.
For LLM training on third-party content specifically: the legal picture is unsettled and jurisdiction-dependent — the honest guidance in web scraping legality applies; RAG on docs and knowledge bases you own is the safe default.
Clean extraction is not a license to republish — the crawler makes content usable by machines, but third-party text stays their copyright.
The Website Content Crawler is the missing first step of every RAG pipeline: any website to clean, structured, markdown-ready text — JS-rendered, boilerplate-stripped, metadata attached.
Point it at your own docs this week — a knowledge-base chatbot over clean content is the fastest RAG win there is.
Ready to get started?
Try the tools from this article risk-free. Free trials available.
FAQ
What is the Apify Website Content Crawler?
Apify's flagship actor for LLM ingestion — crawls websites, renders JavaScript, strips boilerplate and outputs clean markdown/plain text per page with metadata.
How do I feed a website to an LLM?
Crawl with the Website Content Crawler → markdown output → chunk by heading/token window → embed → vector store. The crawler solves the extraction half of RAG; the rest is library calls.
Website Content Crawler vs regular scraper?
Regular scrapers extract structured listing data (prices, products). The Content Crawler extracts clean page content — markdown for RAG, chatbots, migration and corpus building.
Can it crawl JavaScript sites?
Yes — it renders pages properly, so React/Next.js sites, docs platforms and SPAs come back as full text, not empty shells.
Is crawling sites for AI training legal?
Your own properties: unrestricted. Third-party sites: keep to public pages and reasonable volume for analysis; mass-collection for model training on others' content is legally unsettled — default to content you own or have rights to.
Tools mentioned in this article
Affiliate links — we may earn a commission at no cost to you.
Apify
4.7Verified partnerWeb scraping and automation platform — Free / $49/mo Starter
Alex Mercer
AI Marketing Strategist · 8+ years
Alex has tested 200+ AI marketing tools on real campaigns with $50,000+ in ad spend. He writes hands-on reviews based on actual usage data, not press kits. His work has helped 10,000+ marketers build AI automation stacks that generate real ROI.