How to Connect N8N to Notion
Learn how to connect n8n to your Notion databases by creating an internal integration and using the Notion node to read and write data.
How to Connect N8N to Notion
To access your Notion databases from n8n, you need to set up a Notion credential. In this quick tutorial, you'll learn exactly how to create a Notion integration and connect it to your n8n workflow.
Prerequisites
- An n8n workflow (a manual trigger is fine for testing)
- A Notion account with a database you want to access
Step 1: Create a New Integration in Notion
The first step is to create an "internal integration" within Notion, which will generate the secret key (API key) that n8n needs.
1.1 Navigate to Integrations
- Go to your Notion workspace.
- In the left sidebar, click on "Settings & members".
- In the settings menu, find the "Connections" tab.
- Click on "Develop or manage integrations". This will open a new tab with your Notion integrations.
1.2 Create the Integration
- On the integrations page, click the "+ New integration" button.
- Give your integration a name, for example,
n8n Integration. - Associate the integration with the correct workspace.
- Keep the "Integration type" as "Internal integration".
- Click "Submit".
Step 2: Configure Integration Capabilities and Get Secret
Once the integration is created, you need to get the secret token.
- On your new integration's page, you'll see a section for "Secrets".
- Click "Show" and then "Copy" to copy your "Internal Integration Token". This is the secret key you'll need for n8n.
⚠️ Important: Treat this token like a password. Do not share it publicly.
Step 3: Share Your Database with the Integration
Before the integration can access your data, you must explicitly grant it permission.
- Go to the Notion database you want to connect to.
- Click the three-dots menu (...) in the top-right corner of the database page.
- Click on "+ Add connections".
- Find and select the integration you just created (e.g.,
n8n Integration). - Confirm the connection.
The integration now has the necessary permissions to read and modify that specific database.
Step 4: Add and Configure the Notion Node in N8N
Now, let's go back to your n8n workflow.
4.1 Create Notion Credentials
- Add a Notion node to your workflow.
- In the "Credential" field, select "Create New".
- A dialog will pop up asking for the "Internal Integration Secret".
- Paste the token you copied from your Notion integration settings.
- Click "Save".
If the connection is successful, you'll see a "Connection tested successfully" message.
4.2 Fetch Data from Your Notion Database
- In the Notion node settings:
- Resource: Set to
Database. - Operation: Set to
Get.
- Resource: Set to
- Database ID: Click the dropdown to populate the list of databases your integration has access to. Select the database you shared in Step 3 (e.g.,
Sales CRM). - Leave the other options as default for now.
- Click "Execute Node".
You should now see the data from your Notion database pulled into n8n as JSON items.
Other Operations
You have now successfully integrated Notion with n8n!
With this connection, you can perform many other operations besides just getting data, including:
- Get Many: Retrieve multiple rows with filters.
- Search: Search for specific pages or content.
- Create: Add new pages (database entries).
- Update: Modify existing pages.
- Append: Add new blocks to a page's content.
This simple setup unlocks powerful automation possibilities between n8n and your Notion workspace.