惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
S
Schneier on Security
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
U
Unit 42
Hacker News - Newest:
Hacker News - Newest: "LLM"
V2EX - 技术
V2EX - 技术
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
H
Heimdal Security Blog
H
Hacker News: Front Page
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Cloudbric
Cloudbric
Google DeepMind News
Google DeepMind News
C
Cisco Blogs
The Cloudflare Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
F
Fortinet All Blogs
N
News | PayPal Newsroom
Attack and Defense Labs
Attack and Defense Labs
D
DataBreaches.Net
N
News and Events Feed by Topic
Security Archives - TechRepublic
Security Archives - TechRepublic
Forbes - Security
Forbes - Security
Simon Willison's Weblog
Simon Willison's Weblog
F
Full Disclosure
The Register - Security
The Register - Security
L
LINUX DO - 热门话题
Webroot Blog
Webroot Blog
Google Online Security Blog
Google Online Security Blog
AI
AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
Intezer
S
Security Affairs
阮一峰的网络日志
阮一峰的网络日志
K
Kaspersky official blog
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
T
Threatpost
Spread Privacy
Spread Privacy
小众软件
小众软件
AWS News Blog
AWS News Blog
S
Secure Thoughts
S
Security @ Cisco Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
n8n Notion Node: Read, Create, Update, and Search Database Pages (+ Free JSON)
Pirate Prentice · 2026-06-28 · via DEV Community

If you manage projects, content, or customer data in Notion, the n8n Notion node lets you automate every interaction — no manual copy-paste, no Zapier fees, no code required.

This guide covers everything: connecting Notion to n8n, understanding the node's operations, reading and creating database pages, filtering queries, updating properties, and common gotchas. A free workflow JSON is included at the end.

Prerequisites

  • n8n (self-hosted or cloud)
  • A Notion account with at least one database
  • A Notion integration token (we'll create one below)

Step 1: Create a Notion Integration

  1. Go to https://www.notion.so/my-integrations
  2. Click + New integration
  3. Give it a name (e.g., "n8n Automation")
  4. Select the workspace
  5. Set capabilities: Read content, Update content, Insert content — enable all three
  6. Click Submit
  7. Copy the Internal Integration Token (starts with ntn_ or secret_)

⚠️ The token only has access to pages you explicitly share with it. Don't forget Step 2.

Step 2: Share Your Database with the Integration

  1. Open your Notion database
  2. Click ... (top-right) → Add connections
  3. Search for your integration name and select it
  4. Click Confirm

Without this step, every API call returns a 404 — even with a valid token.


Step 3: Add the Credential in n8n

  1. In n8n, go to Credentials → New
  2. Search for Notion API
  3. Paste your Internal Integration Token
  4. Save and test — you should see "Connection tested successfully"

The n8n Notion Node: Operations Overview

The Notion node has two resource types:

Resource Operations
Database Page Create, Get, Get Many, Update
Block Append, Get Children

For most automation use cases, you'll live in Database Page.

Operation: Get Many (Query a Database)

This is your go-to for reading data — it's the equivalent of Notion's "Filter" view.

Required fields:

  • Database ID: The 32-character ID from your database URL
    • URL pattern: notion.so/[workspace]/[DATABASE_ID]?v=...
    • Or share the page and copy the last segment before ?

Finding the Database ID:

https://www.notion.so/myworkspace/abc123def456789012345678901234ab?v=xyz
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                  This 32-char string is your Database ID
                                  (n8n also accepts dashes: abc123de-f456-7890-1234-5678901234ab)

Filters:
Click Add Filter to narrow results:

{
  "property": "Status",
  "select": {
    "equals": "In Progress"
  }
}

Common filter types by property:

Property type Filter key Example value
Text / Title rich_text {"contains": "invoice"}
Select select {"equals": "Done"}
Checkbox checkbox {"equals": true}
Date date {"on_or_after": "2026-01-01"}
Number number {"greater_than": 100}
Multi-select multi_select {"contains": "Marketing"}

Compound filters (AND/OR):
Use the Add Compound Filter option or pass raw JSON:

{
  "and": [
    { "property": "Status", "select": { "equals": "In Progress" } },
    { "property": "Priority", "select": { "equals": "High" } }
  ]
}

Return All vs. Limit:

  • Toggle Return All on to paginate automatically (Notion returns max 100 per page)
  • Leave it off and set Page Size for explicit limits

Sort:
Add sorts under the Sort section:

[
  { "property": "Due Date", "direction": "ascending" }
]


Operation: Get (Single Page)

Fetch one page when you already have the Page ID.

Page ID: Same format as Database ID — 32 hex chars. You get these from:

  • A "Get Many" node's output ({{ $json.id }})
  • The page's URL
  • A webhook payload from Notion (if you're using Notion's webhook beta)

Operation: Create

Add a new row to a Notion database.

Required:

  • Database ID
  • At least one property value (usually the Title / Name column)

Mapping properties:

Click Add Property and match property names exactly as they appear in your database:

Notion property type n8n field type to select
Title Title
Text Rich Text
Select Select
Multi-select Multi Select
Date Date
Checkbox Checkbox
Number Number
URL URL
Email Email
Phone Phone Number
Relation Relation

⚠️ Common gotcha: Property names are case-sensitive and must match exactly. "name" ≠ "Name".
Example: Create a page with Title + Status + Due Date

In the n8n UI:

  1. Resource: Database Page
  2. Operation: Create
  3. Database ID: your-database-id
  4. Add Property: Name (Title) → {{ $json.task_name }}
  5. Add Property: Status (Select) → In Progress
  6. Add Property: Due Date (Date) → {{ $json.due_date }}

Operation: Update

Change properties on an existing page. Requires the Page ID.

  • Only the properties you specify are changed; everything else stays as-is
  • To clear a value, set it to an empty string or null depending on the type
  • To archive a page (equivalent to "delete" in Notion), enable the Archive toggle

Archiving a page:
Turn on the Archive toggle in the Update operation. This moves the page to trash in Notion — it's the closest thing to deletion the API supports.


Blocks: Append Block Children

Use this to add content inside a page (paragraphs, headings, bullets, code blocks) rather than just updating properties.

Use case: You've created a page record (database row), and now you want to write a summary, meeting notes, or AI-generated content into the page body.

Block types supported:

  • paragraph
  • heading_1, heading_2, heading_3
  • bulleted_list_item
  • numbered_list_item
  • to_do
  • code
  • quote
  • divider

Example block JSON:

[
  {
    "object": "block",
    "type": "heading_2",
    "heading_2": {
      "rich_text": [{ "type": "text", "text": { "content": "Summary" } }]
    }
  },
  {
    "object": "block",
    "type": "paragraph",
    "paragraph": {
      "rich_text": [{ "type": "text", "text": { "content": "{{ $json.ai_summary }}" } }]
    }
  }
]


Common Patterns

Pattern 1: Form → Notion Database

Webhook (Typeform/Tally) → Set node (map fields) → Notion Create

Ideal for: lead capture, application intake, event registrations.

Pattern 2: Notion → Email Digest

Schedule Trigger (daily 8am) → Notion Get Many (filter: Status = "In Progress", Due Date = today) → Loop → Gmail/Resend (send row as email)

Ideal for: daily standup digest, task reminders.

Pattern 3: Update Notion from External Event

Webhook (Stripe payment) → Notion Get Many (filter: Email = {{ $json.email }}) → IF (found?) → Notion Update (set Status = "Paid")

Ideal for: syncing payment status, order fulfillment tracking.

Pattern 4: AI Enrichment Pipeline

Notion Get Many (filter: AI Summary is empty) → OpenAI (summarize) → Notion Update (write summary back) + Notion Append Block (add body content)

Ideal for: auto-generating summaries, research notes, content briefs.


Gotchas & Fixes

Problem Cause Fix
404 on every call Database not shared with integration Share the database with your integration (Step 2)
"Could not find database" Wrong Database ID format Remove dashes or use the 32-char hex string directly
Property not updating Name mismatch (case-sensitive) Copy property name exactly from Notion
Date not saving Wrong format Use ISO 8601: 2026-06-28 or 2026-06-28T09:00:00Z
Relation not linking Wrong page ID format Use the 32-char page ID without dashes for relation fields
"Insufficient permissions" Integration lacks capability Re-check integration capabilities at notion.so/my-integrations
400 on checkbox Sending string "true" Send boolean true, not the string
Archived pages appear in queries Default filter includes archived Add filter: "is_not_empty" on a key property, or use archived: false

Free Workflow JSON: Notion Task Digest

This workflow runs every morning at 8am, queries a Notion database for tasks due today, and sends you an email summary.

Setup:

  1. Import the JSON into n8n (Settings → Import Workflow)
  2. Set your Notion Database ID in the Notion node
  3. Set your email in the Gmail/Resend node
  4. Activate
{
  "name": "Notion Daily Task Digest",
  "nodes": [
    {
      "parameters": { "rule": { "interval": [{ "field": "hours", "hoursInterval": 24 }] } },
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": "YOUR_DATABASE_ID_HERE",
        "returnAll": true,
        "filterType": "json",
        "filterJson": "{\"and\":[{\"property\":\"Due Date\",\"date\":{\"equals\":\"{{ $now.toISO().substring(0,10) }}\"}},{\"property\":\"Status\",\"select\":{\"does_not_equal\":\"Done\"}}]}"
      },
      "name": "Get Today Tasks",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2,
      "position": [460, 300]
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\nif (items.length === 0) return [{ json: { subject: 'No tasks due today', body: 'Your Notion board is clear for today.' } }];\nconst lines = items.map(i => `- ${i.json.properties?.Name?.title?.[0]?.plain_text ?? 'Untitled'}`);\nreturn [{ json: { subject: `Today's Tasks (${items.length})`, body: lines.join('\\n') } }];"
      },
      "name": "Build Digest",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "sendTo": "you@example.com",
        "subject": "={{ $json.subject }}",
        "message": "={{ $json.body }}",
        "options": {}
      },
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [900, 300]
    }
  ],
  "connections": {
    "Schedule Trigger": { "main": [[{ "node": "Get Today Tasks", "type": "main", "index": 0 }]] },
    "Get Today Tasks": { "main": [[{ "node": "Build Digest", "type": "main", "index": 0 }]] },
    "Build Digest": { "main": [[{ "node": "Send Email", "type": "main", "index": 0 }]] }
  }
}

Want more pre-built n8n workflow packs? I sell done-for-you workflow JSON bundles on Gumroad — automation patterns for lead capture, Stripe payments, email sequences, and more. Each pack includes documented JSON + setup walkthrough.


Summary

  • Get Many: query with filters + sorts — your primary read operation
  • Get: fetch a single page by ID
  • Create: add a new database row with typed property values
  • Update: modify specific properties on an existing page (by page ID)
  • Append Block Children: write content inside a page body
  • Share your database with the integration before any API call
  • Property names are case-sensitive; Database IDs can include or omit dashes
  • Use the Code node to build digest text, conditional logic, or dynamic filter JSON

The Notion node pairs especially well with the HTTP Request node for anything not natively supported, and with the AI Agent node for enrichment pipelines.