Package Exports
- notion-client
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 (notion-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
notion-client
TypeScript client for the unofficial Notion API.
Install
npm install notion-client
This package is compatible with server-side V8 contexts such as Node.js, Deno, and Cloudflare Workers.
Usage
import { NotionAPI } from 'notion-client'
const api = new NotionAPI()
const page = await api.getPage('067dd719-a912-471e-a9a3-ac10710e7fdf')
const collectionId = '2d8aec23-8281-4a94-9090-caaf823dd21a'
const collectionViewId = 'ab639a5a-853e-45e1-9ef7-133b486c0acf'
const colectionData = await api.getCollectionData(
collectionId,
collectionViewId
)
API
See the auto-generated docs.
License
MIT © Travis Fischer
Support my OSS work by following me on twitter
This project extends MIT-licensed work by Timo Lins, Tobias Lins, Sam Wight, and other contributors.