Skip to content

Files

Latest commit

21cfef6 · Feb 7, 2025

History

History
This branch is 3 commits ahead of, 23 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');