Package Exports
- get-notion-data
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-notion-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Get Notion Data
This will help you to get PUBLIC Notion page's data.
Installation
$ npm i -S get-notion-dataUsage
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