query_database
Retrieve pages from a Notion database using filters, sorting, and pagination. Get only the data you need with precise query criteria.
Instructions
Query a Notion database to retrieve pages matching filter criteria. Supports filtering, sorting, and pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | List of sort objects. E.g., [{"property": "Name", "direction": "ascending"}] | |
| filter | No | Notion filter object. E.g., {"property": "Status", "select": {"equals": "Done"}} | |
| page_size | No | Maximum results to return (1-100) | |
| database_id | Yes | Database UUID to query | |
| start_cursor | No | Pagination cursor from a previous response |