The Query Database block is a Notion integration that enables querying a Notion database. This block can be customized with specific filters to retrieve a set of pages that match certain criteria, which is powerful for extracting and processing data from Notion databases.

The Query Database block has a variable number of inputs depending on the queryโ€™s complexity and one output.

Inputs:

  • Input: This can be a JSON object that defines the query parameters and filters used to search the Notion database.

Outputs:

  • Result: The output is the result of the query, typically a list of pages or blocks that match the query criteria from the Notion database.