# Notion Page Scraper | Extract Wiki, Tables & Markdown (`forlex/notion-page-scraper`) Actor

Scrape public Notion pages, databases, and wikis into clean JSON, Markdown, or HTML. Fully reliable Playwright engine that succeeds where others fail. Perfect for AI/RAG, backups, and data extraction.

- **URL**: https://apify.com/forlex/notion-page-scraper.md
- **Developed by:** [Forlex Lab](https://apify.com/forlex) (community)
- **Categories:** AI, Developer tools, Other
- **Stats:** 23 total users, 14 monthly users, 96.1% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Notion Page & Database Scraper

The most reliable way to extract content from any public **Notion Page or Wiki** for use in AI, LLMs, and RAG pipelines. Unlike basic request-based scrapers that fail due to Notion's heavy React client-side rendering, this scraper uses a deep rendering engine to guarantee extraction. It effortlessly converts complex Notion blocks into clean Markdown or HTML.

| Feature | Description |
| --- | --- |
| 🛡️ **Deep React Rendering** | 100% reliable extraction. We fully render Notion's complex client-side engine in the background to guarantee we capture every block, bypassing the issues that break traditional scrapers. |
| 📝 **Clean Markdown Export** | Uses `turndown` to generate pristine Markdown, specifically optimized for LLM training and RAG (Retrieval-Augmented Generation). |
| 🖼️ **Image Extraction** | Automatically bypasses Notion's expiring AWS image links by downloading them so they live permanently on Apify. |
| 📦 **Offline ZIP Bundles** | Optionally generate a complete `.zip` file containing your `.md` alongside a local `images/` folder with perfectly relative paths. |
| 📊 **Clean Tables** | Proper extraction and Markdown conversion of Notion databases and complex tables. |

### How do I use Notion Page Scraper to extract wikis?

1. Go to the [Notion Page Scraper](https://apify.com/forlex/notion-page-scraper) on Apify.
2. Click the "Try for free" button.
3. Paste a Notion link into **🌐 Start URLs**.
4. Enable **🖼️ Download Images** to safely extract and store images.
5. (Optional) Enable **🗂️ Use Relative Image Paths & ZIP** if you want an offline `.zip` download.
6. Click **Start** and grab your data in JSON or CSV format!

### Pricing

This Actor operates on a **Pay-Per-Event (PPE)** model. You pay **$0.01 per page** extracted. Highly affordable and scales perfectly with your needs!

### Input & Output Examples

**Input:**

```json
{
  "startUrls": [
    { "url": "https://www.notion.so/help/getting-started" }
  ],
  "downloadImages": true,
  "relativeImagePaths": true,
  "maxItems": 10
}
```

**Output:**

```json
{
  "url": "https://www.notion.so/help/getting-started",
  "title": "Getting Started with Notion",
  "text": "# Welcome to Notion\n\nHere is how you start using blocks...",
  "markdownUrl": "https://api.apify.com/v2/key-value-stores/.../records/...",
  "zipUrl": "https://api.apify.com/v2/key-value-stores/.../records/...-bundle.zip",
  "links": [
    "https://www.notion.so/help/blocks"
  ],
  "scrapedAt": "2026-07-05T12:00:00.000Z"
}
```

### Other Actors

Supercharge your Notion workflows with our other tools:

- **[Notion Template Scraper](https://apify.com/forlex/notion-template-scraper)**: Extract creators and prices from the Notion Template Gallery!
- **[Notion Database Uploader & Dataset Sync](https://apify.com/forlex/notion-uploader)**: Push Apify datasets directly into a Notion Database automatically!

### FAQ & Disclaimers

**Why not use the official Notion API?**
The official Notion API requires setting up an integration, handling authentication tokens, and complex permission management. This scraper allows you to instantly extract data from **any public Notion page** with zero auth required—just paste the URL and go.

**Can I scrape private Notion pages?**
No, this scraper is designed for public Notion pages only. Private pages require authentication which is not currently supported.

**Why is it slower than some other scrapers?**
Notion uses heavy client-side rendering. We perform a deep render to ensure the page fully loads before extraction. While slightly slower, it guarantees a 100% success rate compared to fast, request-based scrapers which fail on Notion's dynamic DOM.

*[Try the Notion Page Scraper today and feed your AI pipelines!](https://apify.com?fpr=5uxnkx)*

# Actor input Schema

## `startUrls` (type: `array`):

The easiest way to try! List of public Notion page URLs to scrape.

## `maxItems` (type: `integer`):

Maximum number of pages to extract.

## `downloadImages` (type: `boolean`):

If enabled, Notion images will be downloaded and hosted permanently on Apify so they don't expire.

## `relativeImagePaths` (type: `boolean`):

If enabled, bundles everything into an offline .zip file with local image paths (e.g. ./images/img.png). If disabled, uses public Apify URLs.

## `proxyConfiguration` (type: `object`):

Proxy settings.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8"
    }
  ],
  "maxItems": 20,
  "downloadImages": true,
  "relativeImagePaths": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8"
        }
    ],
    "maxItems": 20,
    "downloadImages": true,
    "relativeImagePaths": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("forlex/notion-page-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8" }],
    "maxItems": 20,
    "downloadImages": True,
    "relativeImagePaths": False,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("forlex/notion-page-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.notion.so/Notion-Official-83715d7703ee4b8699b5e659a4712dd8"
    }
  ],
  "maxItems": 20,
  "downloadImages": true,
  "relativeImagePaths": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call forlex/notion-page-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=forlex/notion-page-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wwVNvIrID53Jr5cPw/builds/SbEqoRSYKwbi9BHRK/openapi.json
