npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pipedream/notion

v0.2.7

Published

Pipedream Notion Components

Downloads

247

Readme

Overview

Notion's API allows for the creation, reading, updating, and deleting of pages, databases, and their contents within Notion. Using Pipedream's platform, you can build workflows that connect Notion with various other services to automate tasks such as content management, task tracking, and data synchronization. With Pipedream's serverless execution, you can trigger these workflows on a schedule, or by external events from other services, without managing any infrastructure.

Example Use Cases

  • Content Sync Between Notion and a CMS: Automatically push new blog posts from Notion to WordPress, ensuring a seamless content flow from drafting to publishing.

  • Task Management with Todoist Integration: When a new task is added to a Notion database, create a corresponding task in Todoist, and vice versa, keeping task lists synced across platforms.

  • Daily Sales Report Generation: Gather sales data from a tool like Shopify at the end of each day, sum up total sales, and create a page in Notion with the day's sales summary for easy reporting.

Getting Started

To get started, first log in to or create your Pipedream account and start a new workflow.

Add a Notion action or trigger to your workflow, then click Select a Notion account to open a Notion connection window:

Selecting your Notion API account

From within this window, select pages you'd like Pipedream to access:

Select the Notion pages that you'd like Pipedream to have access to

Click Accept to connect your Notion account to Pipedream.

Troubleshooting

Unable to find a new database

After creating a new database, reconnect your account and select it to enable Pipedream access.

HTTP errors

400 "invalid_json"

Ensure the request body is formatted as valid JSON.

400 "invalid_request_url"

The URL in your request is incorrect. Ensure the correct format and parameters.

400 "invalid_request"

The request type isn't supported. Ensure the correct format and parameters.

400 "invalid_grant"

Your authorization grant or refresh token is invalid, expired, or mismatched. Refer to OAuth 2.0 documentation.

400 "validation_error"

The request body doesn't match the expected parameters schema. You're most likely missing a key parameter, or a parameter is malformed.

400 "missing_version"

If your request lacks the required Notion-Version header, try adding a new Notion step in Pipedream, as it should handle this automatically.

401 "unauthorized"

If your API token is invalid, reconnect your Notion account to Pipedream.

403 "restricted_resource"

Your API token doesn't have permission to perform this operation. Try reconnecting your Notion account to Pipedream.

404 "object_not_found"

The requested resource doesn't exist or isn't shared with your API token. Double check that the block, database or page exists.

409 "conflict_error"

A conflict occurred, possibly due to outdated parameters. Try updating your parameters.

429 "rate_limited"

You've exceeded the number of allowed requests. Slow down your request rate.

500 "internal_server_error"

An unexpected error has occurred. Contact Notion support if it persists.

502 "bad_gateway"

Notion had a problem processing your request, possibly due to an upstream server issue.

503 "service_unavailable"

Notion is temporarily unavailable, possibly due to a long response time. Try again later.

503 "database_connection_unavailable"

Notion's database cannot be queried at the moment. Try again later.

504 "gateway_timeout"

Your request to Notion timed out. Try resending it after a while.