View as Markdown
Notion (API Key) icon

Notion (API Key) ACTION

Find Pages or Data Sources

Searches for a page or data source. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Notion (API Key) account once, then configure and run Find Pages or Data Sources from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "notion_api_key-search",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    notion_api_key: { authProvisionId: "apn_xxxxxxx" },
    title: "Query (Title)",
    sortDirection: "Sort Direction",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Find Pages or Data Sources inputs
Property Type Description
title Query (Title) string
The object title to search for
Required
sortDirection Sort Direction string
The direction to sort by
Optional
pageSize Page Size integer
The number of items from the full list desired in the response (max 100)
Optional
startCursor Start Cursor (page_id) string
Leave blank to retrieve the first page of results. Otherwise, the response will be the page of results starting after the provided cursor
Optional
filter Page or Data Source string
Whether to search for pages or data sources.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
notion_api_key-search
Version
0.0.3
App
Notion (API Key)
Authentication
API key
Behavior
May modify external data