Notion capability
How to filter Notion database rows
Use POST /v1/data_sources/{data_source_id}/query to return matching rows in code. Use a database view filter when the goal is to show a filtered list in Notion.
Documentation reviewed
Ways to do it
API
POST /v1/data_sources/{data_source_id}/query
Apply a property filter and optional sorts to the pages in a data source.
- Requirements
- A connection that can read the database, its data source ID and a Notion-Version value of 2025-09-03 or newer.
- Limitations
- The request takes a data source ID. A database that contains multiple data sources has a separate ID for each one.
Example
{
"filter": {
"property": "Status",
"status": {
"equals": "In progress"
}
},
"page_size": 20
}Interface
Database view filter
Open the view’s options and add a filter on a property such as Status.
- Requirements
- Access to the database and permission to save changes if the filter is for everyone.
- Limitations
- Each view has its own configuration. A filter saved on one view does not automatically apply to the others.