Notion API - Database & Page Automation avatar

Notion API - Database & Page Automation

Pricing

Pay per event

Go to Apify Store
Notion API - Database & Page Automation

Notion API - Database & Page Automation

Automate your Notion workspace with the official API. Query databases, create and update pages, manage blocks, search content, and sync data. Perfect for CMS automation, content pipelines, project management, and knowledge base workflows.

Pricing

Pay per event

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

2

Monthly active users

5 days ago

Last modified

Share

Automate Notion workspaces with the official API. Query databases, create/update pages, manage blocks, search content, and sync data. Perfect for CMS automation, content pipelines, and knowledge base management.

BYOK (Bring Your Own Key) -- you provide your own API credentials.


Before You Start

This actor requires your own API credentials to fetch real data.

Where to get your key: Notion integration token (starts with 'secret_')

You can test with Demo Mode first (free, no key needed) to see the output format before committing.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true
}

Run with real data

{
"demoMode": false,
"task": "search",
"accessToken": "YOUR_API_KEY_HERE",
"filter": {},
"sorts": [],
"properties": {},
"content": [],
"databaseProperties": {},
"maxResults": 20,
"batchPages": []
}

Input Parameters

ParameterTypeDefaultRequiredDescription
taskstring"search"Yes*Operation to perform
accessTokenstring-Yes*Notion integration token (starts with 'secret_')
databaseIdstring-NoNotion database ID for database operations
pageIdstring-NoNotion page ID for page operations
blockIdstring-NoNotion block ID for block operations
userIdstring-NoNotion user ID for user operations
searchQuerystring-NoText to search for in page/database titles
searchFilterstring-NoFilter search results by object type
filterobject{}NoFilter object for database queries (JSON)
sortsarray[]NoSort configuration for database queries (JSON array)
pageTitlestring-NoTitle for new page
propertiesobject{}NoProperties object for create/update operations (JSON)
contentarray[]NoBlock content to add to page (JSON array of blocks)
parentPageIdstring-NoParent page ID for creating databases or pages
databaseTitlestring-NoTitle for new database
databasePropertiesobject{}NoProperty schema for database (JSON object defining columns)
commentContentstring-NoRich text content for comments
maxResultsinteger20NoMaximum number of results to return
batchPagesarray[]NoArray of page objects for batch creation
webhookUrlstring-NoURL to send results to (Zapier, Make, n8n, etc.)
demoModebooleantrueNoRun with sample data (no integration token required)

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
API RequestEach Notion API request completed$0.01

Demo mode is free -- no charges for sample data.


Troubleshooting

"API key is required"

You have Demo Mode turned off but didn't provide an API key. Either:

  • Turn Demo Mode on to test with sample data
  • Add your API key in the input

"API error 403" or "Unauthorized"

Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • API key without proper permissions
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal