Skip to content

Demo scripts showing how to use Ghost's Admin and Content APIs to accomplish common tasks.

License

Notifications You must be signed in to change notification settings

TryGhost/api-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghost

API Reference | Content API | Admin API | JavaScript Client Libraries | JavaScript SDK

Love open source? We're hiring Node.js Engineers to work on Ghost full-time

API Demos

At its heart, Ghost is a RESTful JSON API — designed to create, manage and retrieve publication content with ease.

Ghost's API is split by function into two parts: Content and Admin. Each has its own authentication methods, structure and extensive tooling so that common publication usecases are solved with minimal effort. Learn more about the Core API in our docs.

This GitHub repository contains an ever-growing collections of demos, showing how you can achieve common tasks easily using the APIs, Client Libraries and JavaScript SDK.

Each individual file is a demo, with it's own instructions for how to use it at the top of the file. The .js files are node scripts that will work out of the box when called with your API url and key. The .html files are client-side demos that will run against demo.ghost.io when opened in your browser of choice.

Install

  1. git clone this repo & cd into it as usual
  2. Run yarn (or npm install) to install top-level dependencies.

Usage

See individual scripts for usage

Copyright & License

Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.

About

Demo scripts showing how to use Ghost's Admin and Content APIs to accomplish common tasks.

Resources

License

Security policy

Stars

Watchers

Forks