get-notion-data

1.0.2 • Public • Published

Get Notion Data

This will help you to get PUBLIC Notion page's data.

Installation

$ npm i -S get-notion-data

Usage

const getNotionData = require('get-notion-data');
 
getNotionData(/* YOUR NOTION PAGE ID */).then((data) => {
  console.log(JSON.stringify(data, null, 2));
});
First of all, you should make page public. Then you can get the ID of the page.
If the public Notion page's URL is https://www.notion.so/Personal-Home-db45cd2e7c694c3493c97f2376ab184a
You need to copy `db45cd2e7c694c3493c97f2376ab184a`. and make it to follow below format.
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
X{8}-X{4}-X{4}-X{4}-X{12}

Before run the source, you should set up the timezone like this. Default timezone is Asiz/Seoul.

$ TZ=Asia/Seoul

Readme

Keywords

Package Sidebar

Install

npm i get-notion-data

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.8 kB

Total Files

4

Last publish

Collaborators

  • wonism