Skip to content

Typescript package for extracting Notion databases in the JSON data format

Notifications You must be signed in to change notification settings

jakeevans00/notion-to-json

Repository files navigation

notion-to-json

This package is designed to help quickly export content from a Notion database to json format, for use in external projects.

Getting Started

Notion

First, open desktop app and perform the following:

  1. Open desired database in Notion
  2. Navigate to Menu -> Connect to -> Manage Connections
  3. In web page, select "Develop or Manage integrations." Name and save.
  4. Return to database and create connection to your new integration (Menu -> Connect to -> Manage Connections)

Dev Environment

  1. Clone the repo: git clone https://github.com/jakeevans00/notion-scripts.git

  2. cd notion-scripts && npm install

  3. 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 demoe

About

Typescript package for extracting Notion databases in the JSON data format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published