Query Data Source
notion_query_data_sourceQuery a Notion data source with filters, sorts, and pagination. Retrieve the database first to get the data_source_id if you only have a database ID.
Instructions
Query a Notion data source with filters, sorts, and pagination. Use notion_retrieve_database first when you only have a database ID and need to discover its data_source_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | Sort conditions | |
| filter | No | Filter conditions | |
| format | No | Specify the response format. 'json' returns the original data structure, 'markdown' returns a more readable format. Use 'markdown' when the user only needs to read the page and isn't planning to write or modify it. Use 'json' when the user needs to read the page with the intention of writing to or modifying it. | |
| page_size | No | Number of results per page (max 100) | |
| start_cursor | No | Pagination cursor for next page of results | |
| response_mode | No | Controls response size for list-heavy tools. Use auto by default so the server returns compact summaries when the Notion response would be noisy. Use compact when IDs and summaries are enough. Use full only when raw Notion API objects are required for an advanced operation. | |
| data_source_id | Yes | The ID of the data source to query. It should be a 32-character string (excluding hyphens) formatted as 8-4-4-4-12 with hyphens (-). |