This package is designed to help quickly export content from a Notion database to json
format, for use in external projects.
First, open desktop app and perform the following:
- Open desired database in Notion
- Navigate to Menu -> Connect to -> Manage Connections
- In web page, select "Develop or Manage integrations." Name and save.
- Return to database and create connection to your new integration (Menu -> Connect to -> Manage Connections)
-
Clone the repo:
git clone https://github.com/jakeevans00/notion-scripts.git
-
cd notion-scripts && npm install
-
Finally, create a file called
.env
and paste in your API_KEY in the same format shown in the.example.env
file (NOTION_API_KEY=secret_abc
)
Run npm start <Database-Name>
For example, I would run npm start demo
if I wanted this database (with all child subpages) exported to json