https://github.com/tryghost/api-demos
Demo scripts showing how to use Ghost's Admin and Content APIs to accomplish common tasks.
https://github.com/tryghost/api-demos
Last synced: 5 months ago
JSON representation
Demo scripts showing how to use Ghost's Admin and Content APIs to accomplish common tasks.
- Host: GitHub
- URL: https://github.com/tryghost/api-demos
- Owner: TryGhost
- License: mit
- Created: 2019-10-16T17:20:15.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-06-18T04:40:07.000Z (7 months ago)
- Last Synced: 2025-06-18T05:33:41.296Z (7 months ago)
- Language: JavaScript
- Homepage: https://ghost.org
- Size: 1.03 MB
- Stars: 26
- Watchers: 10
- Forks: 12
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://ghost.org/docs/concepts/core/).
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-2025 Ghost Foundation - Released under the [MIT license](LICENSE).