<aside> ⚠️ As usual, your schema needs to be perfect. Please refer to the API docs on Notions API docs. Click here.

</aside>

Table of Contents

Add the “Database: Search/Query” action

The filter below will show you the basics of searching your Database entries.

Use a filter to query your database

<aside> 💡 Refer to https://developers.notion.com/reference/post-database-query for more information in regards to filtering and sorting.

</aside>

You’ll need to define your properties in which your are sorting or filtering. Use the examples below to get a better idea.

Example 1 (Filters)

{
  "and": [
    {
      "property": "Done",
      "checkbox": {
        "equals": true
      }
    }, 
    {
      "or": [
        {
          "property": "Tags",
          "contains": "A"
        },
        {
          "property": "Tags",
          "contains": "B"
        }
      ]
    }
  ]
}

Example 2 (Filters)

{
    "filter": {
        "property": "Status",
        "select": {
            "equals": "Reading"
        }
    }
}

Example 3 (Sorts)

{
    "sorts": [
        {
            "property": "Name",
            "direction": "ascending"
        }
    ]
}

Example 4 (Sorts)