App Logo
app.notion.com

Query a Notion database

Read the rows of a Notion database the signed-in account can open, in the order of one of its views, with every property's value by name (text, numbers, selects, multi-selects, dates, checkboxes, people, links to other rows), plus the database's properties and their options. Optionally keep only rows matching a text search. Takes the database's link or id; get it from search_pages.

Input

database required

Link to the database (https://app.notion.com/p/... or https://www.notion.so/...) or its id, with or without dashes.

view optional

View name or id whose filters and order to use. Leave it out for the database's first view.

limit optional

Most rows to return, in the view's order.

Default: 100
search optional

Keep only rows whose text matches these words, as the search box of a database view does.

Output

rows required
view required
total required

How many rows the view holds (after search), when Notion says.

complete required

False when the view holds more rows than limit.

database required
properties required
views optional

FAQ

Read the rows of a Notion database the signed-in account can open, in the order of one of its views, with every property's value by name (text, numbers, selects, multi-selects, dates, checkboxes, people, links to other rows), plus the database's properties and their options. Optionally keep only rows matching a text search. Takes the database's link or id; get it from search_pages.
Required: database. Optional: view, limit, search.
It returns rows, view, total, views, complete, database, properties.
Yes. It acts as you on app.notion.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the app.notion.com cookies saved by the Reduck extension.
It only reads. It looks things up on app.notion.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/app.notion.com/query_database, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/app.notion.com/query_database
It is part of Reduck's official curated catalogue.

Start building not clicking