JSPM

  • Created
  • Published
  • Downloads 1156
  • Score
    100M100P100Q113051F
  • License MIT

Unofficial Notion.so API client.

Package Exports

  • notionapi-agent

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 (notionapi-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

notionapi-agent

version language license

Unofficial Node.js API client for Notion.so.

⚠️ This is a work-in-progress project. If you need to use Notion's API in production, I recommend waiting for their official release.

Installation

npm install notionapi-agent

Getting Started

Try notionapi-agent on RunKit

const { NotionAgent } = require('notionapi-agent')

const agent = new NotionAgent()

async function main() {

  let pageId = '181e961a-eb5c-4ee6-9153-07c0dfd5156d0'

  let page = await agent.loadPageChunk(pageId)
  if (page.error) {
    console.log(`Error:\n`, page.error)
  } else if (page.data) {
    console.log(`Blocks:\n`, page.data)
  }

}

main()

See more API in documentation.

Development

Project Structure

project structure graph

External Dependencies