Skip to content

Query Notion Database Node

Data/Notion

Query Notion Database

Queries a Notion database and returns matching pages

data_notion_query_databasedata
Inputs10
Outputs6
Security exposure2/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
2/10High
PrivacyPotential sensitivity of processed data.
4/10Medium
PerformanceRuntime or resource pressure.
3/10High
GovernancePolicy, audit, or compliance impact.
3/10High
ReliabilityOperational stability considerations.
1/10High
CostExternal or compute cost impact.
3/10High

Input Pins

10

Input

Execution
exec_in

Trigger the database query

Provider

Struct
provider

Notion provider (from Notion node)

NotionProviderNotionProvider4 fields
provider_idstringrequired
access_tokenstringrequired
workspace_idstring | null
workspace_namestring | null
Schema enforced

Database ID

String
database_id

The ID of the Notion database to query

Filter

Struct
filter

Optional filter object in Notion filter format

AnyValueAnyValue0 fields
No named fields in this schema.
Default {}

Sorts

Struct Array
sorts

Optional Notion sorts array. Overrides Sort Property when provided.

AnyValueAnyValue0 fields
No named fields in this schema.
Default []

Sort Property

String
sort_property

Property name to sort by

Sort Direction

String
sort_direction

Sort direction (ascending or descending)

Default descending
ascendingdescending

Page Size

Integer
page_size

Maximum number of results to return (1-100)

Default 100

Start Cursor

String
start_cursor

Pagination cursor from a previous query

Fetch All

Boolean
fetch_all

Fetch every available page of database results

Default false

Output Pins

6

Success

Execution
exec_out

Triggered when query completes successfully

Error

Execution
error

Triggered when an error occurs

Pages

Struct Array
pages

Array of Notion pages matching the query

NotionPageNotionPage7 fields
idstringrequired
urlstringrequired
created_timestringrequired
last_edited_timestringrequired
archivedbooleanrequired
in_trashbooleanrequired
icon_emojistring | null
Schema enforced

Count

Integer
count

Number of pages returned

Has More

Boolean
has_more

Whether there are more results available

Next Cursor

String
next_cursor

Cursor to request the next page of pages

Node Info

Internal name
data_notion_query_database
Category
Data/Notion
Version
1