Documentation
Plugins
Sources
Notion
Overview

Notion Source Plugin

Latest: v1.0.2

A Notion source plugin for CloudQuery that loads data from notion to any database, data warehouse or data lake supported by CloudQuery (opens in a new tab), such as PostgreSQL, BigQuery, Athena, and many more.

Example Configuration

This example syncs from Notion to a Postgres destination. The (top level) source spec section is described in the Source Spec Reference.

kind: source
spec:
  name: "notion"
  path: "cloudquery/notion"
  version: "v1.0.2"
  destinations:
    - "postgresql"
  spec:
    bearer_token: "${NOTION_SECRET_KEY}"

This example uses environment variable expansion to read the token from an NOTION_SECRET_KEY environment variable. You can also hardcode the value in the configuration file, but this is not advised for production settings.

Authentication

In Order for CloudQuery to sync resources from your Notion setup, you will need to create a notion integration key and export the Token in NOTION_SECRET_KEY environment variable. How to create the notion integration key? see here (opens in a new tab). Make sure to give proper Content Capabilities and User Capabilities from capabilities settings. Also give your integration page permissions see here (opens in a new tab). Only pages and databases with permission will able to sync.

export NOTION_SECRET_KEY=<your_notion_integration_key>

Configuration Reference

This is the (nested) spec used by the Notion source plugin:

  • bearer_token (string, required):

    The bearer token to use for authentication.