Skip to content

Files

Latest commit

53ff2c9 · Feb 28, 2025

History

History
This branch is 17 commits ahead of, 2 commits behind GitbookIO/integrations:main.

api

@gitbook/api

Javascript (Browser and Node) API client for the GitBook API.

Installation

npm install @gitbook/api

Usage

import { GitBookAPI } from '@gitbook/api';

const gitbook = new GitBookAPI({
    authToken: 'gb_abc,
});

const { data } = await gitbook..spaces.getSpaceById('abc');