notion-client
    TypeScript icon, indicating that this package has built-in type declarations

    4.14.1 • Public • Published

    React Notion X

    notion-client

    Robust TypeScript client for the unofficial Notion API.

    NPM Build Status Prettier Code Formatting

    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'
    
    // you can optionally pass an authToken to access private notion resources
    const api = new NotionAPI()
    
    // fetch a page's content, including all async blocks, collection queries, and signed urls
    const page = await api.getPage('067dd719-a912-471e-a9a3-ac10710e7fdf')
    
    // fetch the data for a specific collection instance
    const collectionId = '2d8aec23-8281-4a94-9090-caaf823dd21a'
    const collectionViewId = 'ab639a5a-853e-45e1-9ef7-133b486c0acf'
    const colectionData = await api.getCollectionData(
      collectionId,
      collectionViewId
    )

    Docs

    See the auto-generated docs.

    License

    MIT © Travis Fischer

    Support my OSS work by following me on twitter twitter

    Keywords

    none

    Install

    npm i notion-client

    DownloadsWeekly Downloads

    5,213

    Version

    4.14.1

    License

    MIT

    Unpacked Size

    505 kB

    Total Files

    53

    Last publish

    Collaborators

    • fisch0920
    • noahbragg