# Notion Public Pages (`fulfilled_enchilada/notion-public-pages`) Actor

Fetch publicly shared Notion pages over HTTP. Public URLs only. Title, markdown/text, child page URLs. No login, no cookies, no people/email fields.

- **URL**: https://apify.com/fulfilled\_enchilada/notion-public-pages.md
- **Developed by:** [Nock](https://apify.com/fulfilled_enchilada) (community)
- **Categories:** Developer tools
- **Stats:** 1 total users, 0 monthly users, 91.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 public pages

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 Public Pages

Publisher: **Nock**.

Fetch publicly shared Notion pages over anonymous HTTP. One public `notion.site` / `notion.so` URL (or page id) in. Structured page content out.

This Actor is **not affiliated with, endorsed by, or related to Notion**. It only reads pages that a public Notion share link already serves without a login.

### What it does

Give the Actor a public Notion URL (for example a `*.notion.site` share link) or a 32-character page id. It returns a dataset item with the page title, body as markdown and/or plain text, child page URLs, and basic metadata.

No Notion integration token. No login. No cookies. People, email, and phone fields are stripped where they appear in page or database properties.

### Features

- One public Notion URL or page id as input
- Structured output: title, url, pageId, spaceDomain, markdown, text, blockCount, childPageUrls
- Public HTTP only (getPublicPageData + loadCachedPageChunk)
- Optional follow of linked child pages up to maxPages
- Emails redacted to \[email] in text output
- Pay-per-event: one `page` event per public page written to the default dataset, plus Actor start

### Input

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| url | string | yes | — | Public notion.site / notion.so URL, or 32-char page id |
| maxPages | integer | no | 1 | Max pages to fetch, including discovered child pages |
| maxChunks | integer | no | 20 | Max Notion content chunks per page |
| format | string | no | both | both, markdown, or text |

Example:

```json
{"url":"https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb","maxPages":1,"format":"both"}
```

A local example lives at .actor/example\_input.json. The Apify CLI apify run path uses storage/key\_value\_stores/default/INPUT.json.

### Output

Each dataset item has **only** these fields:

| Field | Type | Source |
| --- | --- | --- |
| title | string or null | page title |
| url | string or null | public page URL |
| pageId | string or null | Notion page UUID |
| spaceDomain | string or null | public space subdomain when available |
| markdown | string or null | body as markdown (when requested) |
| text | string or null | body as plain text (when requested) |
| blockCount | number or null | approximate blocks processed |
| childPageUrls | string\[] | linked/child public page URLs found on the page |
| format | string or null | requested format |

### What is collected

- Public page title and body blocks (headings, paragraphs, lists, code, quotes, callouts, bookmarks, images as URLs)
- Child / linked page URLs discovered on the page
- Safe database row property values that are not people/email/phone fields

### What is not collected

- Notion login sessions, cookies, or integration tokens
- Private or login-only pages
- People / person properties, emails, phone numbers (redacted or skipped)
- Created-by / last-edited-by identity fields
- Comments, reactions, or private workspace metadata

### How to run on Apify

Store listing: [apify.com/fulfilled\_enchilada/notion-public-pages](https://apify.com/fulfilled_enchilada/notion-public-pages).

1. Open the Actor on Apify Store or in Apify Console.
2. Set input to a public Notion URL.
3. Run. Results land in the default dataset.

### Local CLI

```bash
npm install
npm run test:local
## or
node scrape.js https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb --max-pages 1 --format both
```

### Pricing note

Users pay compute (PPE + usage). Pay-per-event pricing:

- `actor-start`: $0.02
- `page`: $0.005 per public page written

That targets undercutting Playwright/token Store incumbents that price around $0.01-$0.011 per page, while staying honest about HTTP-only public shares.

### Limits

- Only publicly shared pages work. Private pages are skipped.
- Notion internal HTTP endpoints can change without notice.
- Very large pages may need a higher maxChunks.
- Nested child crawling is capped by maxPages.
- This is not a full Notion-to-Markdown fidelity engine; complex embeds and advanced block types may be summarized as links or skipped.

### Disclaimer

Use only on pages you are allowed to access. Respect Notion terms and applicable law. Publisher: Nock.

# Actor input Schema

## `url` (type: `string`):

Public notion.site / notion.so share URL, or a 32-character page id. Private and login-only pages are skipped.

## `maxPages` (type: `integer`):

How many public pages to fetch, including linked child pages discovered on the starting page.

## `maxChunks` (type: `integer`):

Notion returns page content in chunks. Increase for very long pages.

## `format` (type: `string`):

Whether to emit markdown, plain text, or both.

## Actor input object example

```json
{
  "url": "https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb",
  "maxPages": 1,
  "maxChunks": 20,
  "format": "both"
}
```

# Actor output Schema

## `pages` (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 = {
    "url": "https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb",
    "maxPages": 1,
    "maxChunks": 20,
    "format": "both"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fulfilled_enchilada/notion-public-pages").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 = {
    "url": "https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb",
    "maxPages": 1,
    "maxChunks": 20,
    "format": "both",
}

# Run the Actor and wait for it to finish
run = client.actor("fulfilled_enchilada/notion-public-pages").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "url": "https://notion-templates.notion.site/Design-Portfolio-06c04e85a23f411c81347d75ae627ebb",
  "maxPages": 1,
  "maxChunks": 20,
  "format": "both"
}' |
apify call fulfilled_enchilada/notion-public-pages --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fulfilled_enchilada/notion-public-pages"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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