Data Source Query

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

by NotionRequires connected account$0.0025 per request · $0.25 per 100 requests

Example

You ask your agent

“Find the “Launch readiness brief” page in my Notion database.”

You get

URL
https://app.notion.com/p/1b2c3d4e000040008000000000000002
Is archived
No
Name
Launch readiness brief
Status
Draft
What your agent sends and gets back (JSON)

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

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
  }
}

Response

{
  "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
    }
  ]
}

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Data Source Query (tool ID: notion.data-source-query). Ask me for the details you need, then show me the result. Help me connect the required app account if needed.

Your agent will also help you connect your app account the first time.

No agent yet? Create your account on the web and connect one from your dashboard later.

Other tools for this job

Compare all 8 →

Questions

Is Data Source Query by Notion free?

Scrollport has no free tier: it costs $0.0025 per request ($0.25 per 100 requests), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

Do I need my own Notion account?

Yes. It works in the Notion account you connect to Scrollport, with the access you approve. Scrollport does not provide Notion accounts.

Details

About this tool

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

All inputs and outputs

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
resultsarray

Result records.

Errors and limits
  • 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}