← Notion

Query Data Source with Notion API

Pipedream makes it easy to connect APIs for Notion and 2,800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Query Data Source with the Notion API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Create a workflow to Query Data Source with the Notion API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Query Data Source action
    1. Connect your Notion account
    2. Select a Data Source ID
    3. Configure Filter (query)
    4. Configure Sorts
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Query Databse with Notion API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Notion
 
Try it
Query Databse with Notion API on New Message from Discord API
Discord + Notion
 
Try it
Query Databse with Notion API on New Message In Channels from Slack API
Slack + Notion
 
Try it
Query Databse with Notion API on New Message in Channel from Discord Bot API
Discord Bot + Notion
 
Try it
Query Databse with Notion API on New Submission from Typeform API
Typeform + Notion
 
Try it
Query Databse with Notion API on Custom Events from Zoom API
Zoom + Notion
 
Try it
Query Databse with Notion API on New Submission (Instant) from Jotform API
Jotform + Notion
 
Try it
Query Databse with Notion API on Custom Webhook Events from Stripe API
Stripe + Notion
 
Try it
Query Databse with Notion API on New Scheduled Tasks from Pipedream API
Pipedream + Notion
 
Try it
Query Databse with Notion API on npm Download Counts from npm API
npm + Notion
 
Try it
Query Databse with Notion API on New or Updated Event (Instant) from Google Calendar API
Google Calendar + Notion
 
Try it
Query Databse with Notion API on Query Results from Snowflake API
Snowflake + Notion
 
Try it
Query Databse with Notion API on New Activity Created Event from Strava API
Strava + Notion
 
Try it
Query Databse with Notion API on Account Created from Zoom Admin API
Zoom Admin + Notion
 
Try it
Query Database with Notion API on New or Removed Documents in a Collection from Fauna API
Fauna + Notion
 
Try it
Query Databse with Notion API on New or Modified File or Folder from Dropbox API
Dropbox + Notion
 
Try it
Query Databse with Notion API on New or changed appointments from SuperSaaS API
SuperSaaS + Notion
 
Try it
Query Databse with Notion API on Invitee Cancelled (Instant) from Calendly API
Calendly (Key) + Notion
 
Try it
Query Databse with Notion API on New Deploy Failure (Instant) from Netlify API
Netlify + Notion
 
Try it
Query Databse with Notion API on New Stories for a Tag from Dev.to API
Dev.to + Notion
 
Try it
Query Databse with Notion API on Task Added To Project (Instant) from Asana API
Asana + Notion
 
Try it
Query Databse with Notion API on Weather for ZIP Code from HERE API
HERE + Notion
 
Try it
Query Database with Notion API on New Branch (Instant) from GitLab API
GitLab + Notion
 
Try it
Query Database with Notion API on New Events from Gorgias (API Key) API
Gorgias (API Key) + Notion
 
Try it
Query Databse with Notion API on Card Due Date Reminder from Trello API
Trello + Notion
 
Try it
Query Databse with Notion API on New Comments by Keyword from Hacker News API
Hacker News + Notion
 
Try it
Query Databse with Notion API on New Inbound SES Emails from AWS API
AWS + Notion
 
Try it
Query Databse with Notion API on New Tweet Metrics from Twitter Developer App API
X Developer App (formerly Twitter) + Notion
 
Try it
Query Data Source with Notion API on Deleted Issue (Instant) from Taiga API
Taiga + Notion
 
Try it
Query Data Source with Notion API on New Domain Added from GoDaddy API
GoDaddy + Notion
 
Try it
Query Data Source with Notion API on New Employee Created from Buddee API
Buddee + Notion
 
Try it
Query Data Source with Notion API on New Fax Received (Instant) from Sinch API
Sinch + Notion
 
Try it
Query Data Source with Notion API on New File from Bitport API
Bitport + Notion
 
Try it
Query Data Source with Notion API on New Profile Update from ScrapeCreators API
ScrapeCreators + Notion
 
Try it
Query Data Source with Notion API on New Session Created from Airtop API
Airtop + Notion
 
Try it
Query Data Source with Notion API on New Wallet Event (Instant) from Coinbase Developer Platform API
Coinbase Developer Platform + Notion
 
Try it
Query Database with Notion API on Action Created from iAuditor by SafetyCulture API
iAuditor by SafetyCulture + Notion
 
Try it
Query Database with Notion API on Agency Listing Updated from Domain Group API
Domain Group + Notion
 
Try it
Query Database with Notion API on Asset Uploaded from Shotstack API
Shotstack + Notion
 
Try it
Query Database with Notion API on Assignment Done from Google Classroom API
Google Classroom + Notion
 
Try it
Query Database with Notion API on Balance Updated from Mocean API API
Mocean API + Notion
 
Try it
Query Database with Notion API on Bill State Updated (Instant) from Clio - Australia API
Clio - Australia + Notion
 
Try it
Query Database with Notion API on Bill State Updated (Instant) from Clio - Canada API
Clio - Canada + Notion
 
Try it
Query Database with Notion API on Bill State Updated (Instant) from Clio - EU API
Clio - EU + Notion
 
Try it
Query Database with Notion API on Booking Contact Updated from Slottable API
Slottable + Notion
 
Try it
Query Database with Notion API on Box Changed Stage (Instant) from Streak API
Streak + Notion
 
Try it
Query Database with Notion API on Call Ended (Instant) from Rinkel API
Rinkel + Notion
 
Try it
Query Database with Notion API on Cancelled Booking with Customer from Appointedd API
Appointedd + Notion
 
Try it
Query Database with Notion API on Catalog Item Updated from Square API
Square + Notion
 
Try it
Query Database with Notion API on Category Overspent from You Need a Budget API
You Need a Budget + Notion
 
Try it
Query Database with Notion API on Chat Status Updated from HelpCrunch API
HelpCrunch + Notion
 
Try it
Query Database with Notion API on Client Updated from Paymo API
Paymo + Notion
 
Try it
Query Database with Notion API on Client Updated from RiskAdvisor API
RiskAdvisor + Notion
 
Try it
Query Database with Notion API on Collection Item Updated from Webflow (v2) API
Webflow (v2) - do not use + Notion
 
Try it
Query Database with Notion API on Completed Document (Instant) from signNow API
signNow + Notion
 
Try it
Query Database with Notion API on Contact Created from Apollo.io API
Apollo.io + Notion
 
Try it
Query Database with Notion API on Contact Deleted (Instant) from SmashSend API
SmashSend + Notion
 
Try it
Query Database with Notion API on Contact Joins Vault (Instant) from AttractWell API
AttractWell + Notion
 
Try it
Query Database with Notion API on Contact Status Updated from Ambivo API
Ambivo + Notion
 
Try it
Query Database with Notion API on Contact Unsubscribed from Vision6 API
Vision6 + Notion
 
Try it
Query Database with Notion API on Contact Updated from ProWorkflow API
ProWorkflow + Notion
 
Try it
Query Database with Notion API on Customer Card Expired (Instant) from Chargebee API
Chargebee + Notion
 
Try it
Query Database with Notion API on Customer Created (Instant) from Customer Fields API
Customer Fields + Notion
 
Try it
Query Database with Notion API on Customer Created from Plain API
Plain + Notion
 
Try it
Query Database with Notion API on Customer Updated (Instant) from Loyverse API
Loyverse + Notion
 
Try it
Query Database with Notion API on Customer Updated (Instant) from Orderspace API
Orderspace + Notion
 
Try it
Query Database with Notion API on Dataset Refresh Completed from Microsoft Power BI API
Microsoft Power BI + Notion
 
Try it
Query Database with Notion API on Document Creation Failed (Instant) from PandaDoc API
PandaDoc + Notion
 
Try it
Query Database with Notion API on Document Export Failed from Cloudpress API
Cloudpress + Notion
 
Try it
Query Database with Notion API on Donation Refunded from Raisely API
Raisely + Notion
 
Try it
Query Database with Notion API on Employee Updated from Breathe API
Breathe + Notion
 
Try it
Query Database with Notion API on Entitlement Threshold Reached (Instant) from Paigo API
Paigo + Notion
 
Try it
Query Database with Notion API on Event Created from Team Up API
Team Up + Notion
 
Try it
Query Database with Notion API on Event Start from Teamup API
Teamup + Notion
 
Try it
Query Database with Notion API on Exchange Rate Updated from CurrencyScoop API
CurrencyScoop + Notion
 
Try it
Query Database with Notion API on File Deleted from DigitalOcean Spaces API
DigitalOcean Spaces + Notion
 
Try it
Query Database with Notion API on Form Created from 123FormBuilder API
123FormBuilder + Notion
 
Try it
Query Database with Notion API on Incident Updated (Instant) from Statuspage API
Statuspage + Notion
 
Try it
Query Database with Notion API on Inventory Object Updated from Booking Experts API
Booking Experts + Notion
 
Try it
Query Database with Notion API on Inventory Updated from Lightspeed Retail POS API
Lightspeed Retail POS + Notion
 
Try it
Query Database with Notion API on Inventory Updated from Sellercloud API
Sellercloud + Notion
 
Try it
Query Database with Notion API on Issue Created from PractiTest API
PractiTest + Notion
 
Try it
Query Database with Notion API on Issued Credential from Accredible API
Accredible + Notion
 
Try it
Query Database with Notion API on Item Position Changed from Miro Developer App API
Miro Developer App + Notion
 
Try it
Query Database with Notion API on Job Finished (Instant) from Cloud Convert API
Cloud Convert + Notion
 
Try it
Query Database with Notion API on Job Run Completed (Instant) from dbt Cloud API
dbt Cloud + Notion
 
Try it
Query Database with Notion API on Lead Details Updated from CINC API
CINC + Notion
 
Try it
Query Database with Notion API on Member Created from Patreon API
Patreon + Notion
 
Try it
Query Database with Notion API on Message Received from LoopMessage API
LoopMessage + Notion
 
Try it
Query Database with Notion API on Name Updated (Instant) from monday API
monday + Notion
 
Try it
Query Database with Notion API on New 1-on-1 Created from 15Five API
15Five + Notion
 
Try it
Query Database with Notion API on New Abandoned Cart from Shopify (Developer App) API
Shopify + Notion
 
Try it
Query Database with Notion API on New Abandoned Cart from Shopify (OAuth) API
Shopify (OAuth) + Notion
 
Try it
Query Database with Notion API on New Access Token Event from LaunchDarkly (OAuth) API
LaunchDarkly (OAuth) + Notion
 
Try it
Query Database with Notion API on New Access Token Event from LaunchDarkly API
LaunchDarkly + Notion
 
Try it
Query Database with Notion API on New Account Added from Outseta API
Outseta + Notion
 
Try it
Query Database with Notion API on New Account Created from Recurly API
Recurly + Notion
 
Try it
Query Database with Notion API on New Account Data Change from 46elks API
46elks + Notion
 
Try it
Query Database with Notion API on New Account Event (Instant) from Overledger API
Overledger + Notion
 
Try it
Query Database with Notion API on New Account from Amilia API
Amilia + Notion
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Query Data Source on Notion
Description:Query a data source with a specified filter. [See the documentation](https://developers.notion.com/reference/query-a-data-source)
Version:1.0.1
Key:notion-query-database

Code

import utils from "../../common/utils.mjs"; import notion from "../../notion.app.mjs"; export default { key: "notion-query-database", name: "Query Data Source", description: "Query a data source with a specified filter. [See the documentation](https://developers.notion.com/reference/query-a-data-source)", version: "1.0.1", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props: { notion, dataSourceId: { propDefinition: [ notion, "dataSourceId", ], }, filter: { label: "Filter (query)", description: "The filter to apply, as a JSON-stringified object. [See the documentation for available filters](https://developers.notion.com/reference/filter-data-source-entries). Example: `{ \"property\": \"Name\", \"title\": { \"contains\": \"title to search for\" } }`", type: "string", }, sorts: { label: "Sorts", description: "The sort order for the query. [See the documentation for available sorts](https://developers.notion.com/reference/sort-data-source-entries). Example: `[ { \"property\": \"Name\", \"direction\": \"ascending\" } ]`", type: "string[]", }, }, async run({ $ }) { const { filter, sorts, } = this; const response = await this.notion.queryDataSource(this.dataSourceId, { filter: utils.parseStringToJSON(filter), sorts: utils.parseObject(sorts), }); const length = response?.results?.length; $.export("$summary", `Retrieved ${length} result${length === 1 ? "" : "s"}`); return response; }, }; 

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
NotionnotionappThis component uses the Notion app.
Data Source IDdataSourceIdstringSelect a value from the drop down menu.
Filter (query)filterstring

The filter to apply, as a JSON-stringified object. See the documentation for available filters Example: { "property": "Name", "title": { "contains": "title to search for" } }

Sortssortsstring[]

The sort order for the query. See the documentation for available sorts Example: [ { "property": "Name", "direction": "ascending" } ]

Authentication

Notion uses OAuth authentication. When you connect your Notion account, Pipedream will open a popup window where you can sign into Notion and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Notion API.

Pipedream requests the following authorization scopes when you connect your account:

About Notion

Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.

More Ways to Use Notion

Triggers

New Comment Created from the Notion API

Emit new event when a new comment is created in a page or block. See the documentation

 
Try it
New Data Source Created from the Notion API

Emit new event when a data source is created. See the documentation

 
Try it
New or Updated Page in Data Source (By Property) from the Notion API

Emit new event when a page is created or updated in the selected data source. See the documentation

 
Try it
New or Updated Page in Data Source (By Timestamp) from the Notion API

Emit new event when a page is created or updated in the selected data source. See the documentation

 
Try it
New Page in Data Source from the Notion API

Emit new event when a page is created in the selected data source. See the documentation

 
Try it
New Webhook Event (Instant) from the Notion API

Emit new event each time a webhook event is received. Webhook must be setup in Notion. See the documentation

 
Try it
Page or Subpage Updated from the Notion API

Emit new event when the selected page or one of its sub-pages is updated. See the documentation

 
Try it
Page Properties Updated (Instant) from the Notion API

Emit new event each time a page property is updated in a data source. For use with Page Properties Updated event type. Webhook must be set up in Notion. See the documentation

 
Try it
Page Updated from the Notion API

Emit new event when a selected page is updated. See the documentation

 
Try it

Actions

Append Block to Parent with the Notion API

Append new and/or existing blocks to the specified parent. See the documentation

 
Try it
Complete File Upload with the Notion API

Use this action to finalize a mode=multi_part file upload after all of the parts have been sent successfully. See the documentation

 
Try it
Create Comment with the Notion API

Create a comment in a page or existing discussion thread. See the documentation

 
Try it
Create Database with the Notion API

Create a database and its initial data source. See the documentation

 
Try it
Create File Upload with the Notion API

Create a file upload. See the documentation

 
Try it
Create Page with the Notion API

Create a page from a parent page. See the documentation

 
Try it
Create Page from Data Source with the Notion API

Create a page from a data source. See the documentation

 
Try it
Delete Block with the Notion API

Sets a Block object, including page blocks, to archived: true using the ID specified. See the documentation

 
Try it
Duplicate Page with the Notion API

Create a new page copied from an existing page block. See the documentation

 
Try it
Find Pages or Data Sources with the Notion API

Searches for a page or data source. See the documentation

 
Try it
List All Users with the Notion API

Returns all users in the workspace. See the documentation

 
Try it
List File Uploads with the Notion API

Use this action to list file uploads. See the documentation

 
Try it
Retrieve Data Source Content with the Notion API

Get all content of a data source. See the documentation

 
Try it
Retrieve Data Source Schema with the Notion API

Get the property schema of a data source in Notion. See the documentation

 
Try it
Retrieve File Upload with the Notion API

Use this action to retrieve a file upload. See the documentation

 
Try it
Retrieve Page Content with the Notion API

Get page content as block objects or markdown. Blocks can be text, lists, media, a page, among others. See the documentation

 
Try it
Retrieve Page Metadata with the Notion API

Get details of a page. See the documentation

 
Try it
Retrieve Page Property Item with the Notion API

Get a Property Item object for a selected page and property. See the documentation

 
Try it
Retrieve User with the Notion API

Returns a user using the ID specified. See the documentation

 
Try it
Send File Upload with the Notion API

Send a file upload. See the documentation

 
Try it
Update Child Block with the Notion API

Updates a child block object. See the documentation

 
Try it
Update Data Source with the Notion API

Update a data source. See the documentation

 
Try it
Update Page with the Notion API

Update a page's property values. To append page content, use the Append Block action instead. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.