Notion API - Database & Page Automation avatar

Notion API - Database & Page Automation

Pricing

from $10.00 / 1,000 search notions

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

from $10.00 / 1,000 search notions

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

21

Total users

0

Monthly active users

6 hours 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_')

Demo Mode is off by default, so runs fetch real data. Set demoMode to true to get free sample data that shows the output format, no key needed.


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.)
demoModebooleanfalseNoRun with sample data (no integration token required)

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventWhen it is chargedPrice
Actor startOnce when the run starts, one event per GB of memory (minimum one). At the default 4 GB of memory a run starts at $0.40$0.10 per GB
Search NotionSearch pages and databases by title$0.01
Query DatabaseQuery Notion database with filters and sorts$0.02
Get DatabaseRetrieve Notion database schema and properties$0.01
Create DatabaseCreate new Notion database with custom properties$0.05
Update DatabaseModify Notion database title and properties$0.02
Get PageRetrieve Notion page properties$0.01
Create PageCreate new page in database or as subpage$0.03
Update PageModify Notion page properties$0.02
Get BlockRetrieve block content$0.01
Get Block ChildrenList child blocks (page content)$0.01
Append BlocksAdd content blocks to a page$0.02
Update BlockModify block content$0.02
Delete BlockRemove a block from Notion$0.01
List UsersGet workspace members$0.01
Get UserRetrieve user details by ID$0.01
Get Bot UserRetrieve bot integration info$0.01
List CommentsGet comments on page or block$0.01
Create CommentAdd comment to a page$0.02
Batch Create PagesCreate multiple pages in one run (per page)$0.03

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