API-post-database-query
Query a Notion database by ID, filter properties, apply sort criteria, and paginate results using the Notion API. Retrieve specific page data efficiently with customizable filters and sorting options.
Instructions
Notion | Query a database
Input Schema
Name | Required | Description | Default |
---|---|---|---|
archived | No | ||
database_id | Yes | Identifier for a Notion database. | |
filter | No | When supplied, limits which pages are returned based on the [filter conditions](ref:post-database-query-filter). | |
filter_properties | No | A list of page property value IDs associated with the database. Use this param to limit the response to a specific page property value or values for pages that meet the `filter` criteria. | |
in_trash | No | ||
page_size | No | The number of items from the full list desired in the response. Maximum: 100 | |
sorts | No | When supplied, orders the results based on the provided [sort criteria](ref:post-database-query-sort). | |
start_cursor | No | When supplied, returns a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results. |