Ghost provides promise-based JavaScript client libraries, which handle the details of authentication, request and response formats and makes working with each API as easy as possible. Each API has its own client library.

Content API Client Library

The Content API client library is a lightweight tool, available for both the browser and Node.js.

The Content API is designed for any situation in which you want to fetch data from your Ghost install. It supports a wide range of use cases, such as creating a latest posts widget on your site or generating a fully static Gatsby site.

Admin API Client Library

The Admin API client library is designed for integrations that use private API keys, and is for Node.js only.

The Admin API supports publishing workflows where you want to integrate Ghost with other tools, such as publishing content from a desktop editor, automatically sharing content to social media, or syncing data to and from email campaign software.

JavaScript SDK

As well as individual client libraries, we have an ever-growing JavaScript SDK with a suite of tools that help you work with your data before and after working with the API.