Files
notion-api-worker/README.md
2020-04-21 15:08:21 +02:00

1.8 KiB
Raw Blame History

Notion API Worker

A serverless wrapper for the the private Notion API. It provides fast and easy access to your Notion content. Ideal if you want to use Notion as CMS.

It's powered by Cloudflare Workers.

This package might become obsolete, once the official Notion API arrives.

Features

🍭 Easy to use Receive Notion data with a single GET request

🗄 Table Access Get structured data from tables & databases

Fast CDN Leverage the global Cloudflare CDN

🛫 CORS Friendly Access your data where you need it

Use Cases

  • Create a table with pages that include date and additional metadata. Perfect if you want to render a list of all available posts.

  • Get page content that can be rendered with react-notion

Endpoints

We provide a hosted version of this project on https://notion-api.splitbee.io. You can also host your own. Cloudflare offers a generous free plan with up to 100,000 request per day.

Load Page - /v1/page/<PAGE_ID>

Example

Returns all block data for a given page. For example, you can render this data with react-notion.

Loage Table /v1/table/<PAGE_ID>

Example

Returns the given Table page as object array. The column names serve as key for those object.

Credits