Back to Workspace knowledge

Data Source Query

Notion

Query a Notion data source with filters, sorts and paging.

Current price
$0.0050/call
Availability
Connected app
Last accepted verification

What this API does

Queries pages from a Notion data source with optional filter and sorts. Billed per upstream request at $0.0050; one page (up to 100 rows) is one request.

Agents select this operation with tool ID notion.data-source-query, then inspect its current executable contract before a run.

Public input and output shape

Input

bodyobject · optional

Bounded request body sent to the connected application.

max_pagesinteger · optional

Maximum number of result pages to request.

minimum: 1 · maximum: 10

pathobject · required

Identifier path for the authorised connected-app record.

Output

pagesnumber

Returned pages value.

resultsarray

Returned results value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

{
  "tool_id": "notion.data-source-query",
  "input": {
    "body": {
      "filter": {
        "title": {
          "equals": "Launch readiness brief"
        },
        "property": "Name"
      },
      "page_size": 1
    },
    "path": {
      "data_source_id": "YOUR-NOTION-DATA-SOURCE-ID"
    },
    "max_pages": 1
  }
}

Output

{
  "pages": 1,
  "results": [
    {
      "id": "1b2c3d4e-0000-4000-8000-000000000002",
      "url": "https://app.notion.com/p/1b2c3d4e000040008000000000000002",
      "object": "page",
      "properties": {
        "Name": {
          "type": "title",
          "title": [
            {
              "type": "text",
              "plain_text": "Launch readiness brief"
            }
          ]
        },
        "Status": {
          "type": "rich_text",
          "rich_text": [
            {
              "type": "text",
              "plain_text": "Draft"
            }
          ]
        }
      },
      "is_archived": false
    }
  ]
}
Teaching errors and limitations
  • invalid_input: missing path parameter "data_source_id" for endpoint /v1/data_sources/{data_source_id}/querySearch for a data_source first, then pass its id: {"path":{"data_source_id":"a1b2c3d4"},"body":{"page_size":100},"max_pages":1}
Updated
18 August 2026

Use Data Source Query with Scrollport

Scrollport validates tools for connected apps and provides them on a pay-as-you-go basis so your agent can use accounts you already own without receiving sensitive API keys.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.