Go to example tasks

Extract Notion Wiki into AI & LLM RAG Chunks

Recursively crawl a Notion wiki or knowledge base and split every page into heading-aware, token-sized Markdown chunks ready for LangChain, LlamaIndex, Pinecone, Qdrant, and OpenAI Vector Stores.

Try for free
Notion Page, Wiki & Database Scraper - Markdown, JSON & RAG
Notion Page, Wiki & Database Scraper - Markdown, JSON & RAGforlex/notion-page-scraper
Title
Heading Path
Chunk Index
Text (Markdown)
+1 field
Text
Number
Boolean
List
Object

Input

🌐 Start URLs(required)
url:https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8
📄 Max Pages:20
🕸️ Crawl Subpages Recursively:true
🪜 Max Crawl Depth:2
📦 Output Mode:chunks
Target Tokens per Chunk:700
Overlap Tokens:80

Output fields

Title
Heading Path
Chunk Index
Text (Markdown)
Page URL

How it works

Sign up on Apify or log in

The Notion Page, Wiki & Database Scraper - Markdown, JSON & RAG Actor is ready to run with the inputs already set for "Extract Notion Wiki into AI & LLM RAG Chunks". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Extract Notion Wiki into AI & LLM RAG Chunks" task

The Notion Page, Wiki & Database Scraper - Markdown, JSON & RAG Actor will start running based on the input automatically. You can also change all the input fields, like 🌐 start urls, 📄 max pages, and more, to match your specific use case.

Receive the "Extract Notion Wiki into AI & LLM RAG Chunks" 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 title, heading path, chunk index, 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 "Extract Notion Wiki into AI & LLM RAG Chunks" task via API.

Image

Integrate "Extract Notion Wiki into AI & LLM RAG Chunks" into your workflow

Connect "Extract Notion Wiki into AI & LLM RAG Chunks" 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 Extract Notion Wiki into AI & LLM RAG Chunks task emits one JSON record per chunk with title, headingPath breadcrumb, chunkIndex, totalChunks, clean Markdown text, contentHash, and source URL.

The Extract Notion Wiki into AI & LLM RAG Chunks task splits Notion pages along H1-H3 headings with configurable targetChunkTokens and overlapTokens so embeddings preserve section context.

Setting syncKey and enabling emitOnlyChanges in the Extract Notion Wiki into AI & LLM RAG Chunks task skips unchanged pages across scheduled runs so you only re-embed updated documentation.

The Extract Notion Wiki into AI & LLM RAG Chunks task scrapes public Notion URLs with zero auth and also accepts an optional encrypted notionToken to extract shared private workspace pages.