notion_query_database
Query Notion databases to retrieve filtered, sorted, or paginated results in JSON or Markdown format for efficient data access and readability.
Instructions
Query a database in Notion
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database_id | Yes | The ID of the database to query.It should be a 32-character string (excluding hyphens) formatted as 8-4-4-4-12 with hyphens (-). | |
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. | markdown |
page_size | No | Number of results per page (max 100) | |
sorts | No | Sort conditions | |
start_cursor | No | Pagination cursor for next page of results |