Back to Notion Databases
Notion / Notion Databases
Query a Database
Query pages from a Notion database.
notionDatabaseQuery
Internal
Permissions
There are no items to display.
Optional permissions
There are no items to display.
Parameters
NameTypeDescriptionRequired
databaseIdmustache Notion database ID.Yes
filtermustache Database query filter object. Provide valid JSON object.No
sortsmustache Array of sort objects for the query. Provide valid JSON array.No
start_cursormustache Pagination cursor returned by a previous database query response.No
page_sizenumber Maximum number of pages to return.No
Returns
NameTypeDescription
objectstring Response object type.
typestring List type discriminator when returned by Notion.
page_or_databasemap Type-specific list metadata for page_or_database.
next_cursorstring Cursor for the next page of results.
has_moreboolean Whether more results are available.
results.objectstring Object type returned by Notion.
results.idstring Unique ID of the Notion object.
results.urlstring Canonical URL for the object when available.
results.public_urlstring Public URL when the object is publicly shared.
results.created_timestring Creation timestamp in ISO 8601 format.
results.last_edited_timestring Last edited timestamp in ISO 8601 format.
results.archivedboolean Whether the object is archived.
results.in_trashboolean Whether the object is in trash.
results.parentmap Parent reference object returned by Notion.
results.propertiesmap Page properties object.
results.iconmap Page icon object when set.
results.covermap Page cover object when set.
Install In Tools

See how to install an app in your tool

Follow the quick walkthrough below to add marketplace apps into your tool flow.

Step 01
Open your tool setup
Start from the tool workspace where you want to add a new app.
Step 02
Go to tools and create button
Open the Tools page, then click the Create button to start adding a new app.
Step 03
Choose Internal or External work
Choose Internal or External work, then select an app action.
Step 04
Select app to install to Knoon
Pick the app you want to install to Knoon and complete the setup flow.
Step 05
Success!
The app has been installed successfully and is ready to use in your workflow.
Power your business with Knoon's Agentic AI today.
Join businesses already resolving thousands of customer inquiries and sales leads with Knoon.