Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wonism/get-notion-data
Get public Notion page's data.
https://github.com/wonism/get-notion-data
cms notion
Last synced: about 1 month ago
JSON representation
Get public Notion page's data.
- Host: GitHub
- URL: https://github.com/wonism/get-notion-data
- Owner: wonism
- License: mit
- Created: 2019-06-16T16:47:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T01:02:35.000Z (over 2 years ago)
- Last Synced: 2023-03-01T15:06:47.979Z (almost 2 years ago)
- Topics: cms, notion
- Language: JavaScript
- Size: 6.84 KB
- Stars: 15
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Get Notion Data
> This will help you to get **PUBLIC** Notion page's data.## Installation
```sh
$ npm i -S get-notion-data
```## Usage
```js
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-db45cd2e7c694c3493c97f2376ab184aYou 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.
```sh
$ TZ=Asia/Seoul
```