Ghost

FREE
By dimas
Updated 5 months ago
News, Media
1.8/10
Popularity Score
234ms
Latency
100%
Success Rate

Ghost API Documentation

Ghost is a fully open source, hackable platform for building and running a modern online publication.

View API Details
POSTgetAllPosts
POSTgetAllTags
POSTgetAllUsers
POSTgetPost
POSTgetPostBySlug
POSTgetTag
POSTgetTagBySlug
POSTgetUser
POSTgetUserByEmail
POSTgetUserBySlug
POSTgetAllPosts

The getAllPosts endpoint allows you to browse all published posts on a particular blog.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
blogUrlSTRING
REQUIREDLink of the blog on which we will receive data.
clientIdCREDENTIALS
REQUIREDAPI client id.
clientSecretCREDENTIALS
REQUIREDAPI client secret.
Optional Parameters
fieldsLIST
OPTIONALAllows you to specify which resource fields to retrieve rather than retrieving the. whole object.
pageNUMBER
OPTIONALWhich page of paginated results to retrieve.
limitNUMBER
OPTIONALHow many posts to retrieve.
orderSTRING
OPTIONALChoose which field to order by and direction of ordering.Example - asc id.
resourceSTRING
OPTIONALId or slug changes query to a read request.
includeSELECT
OPTIONALInclude related data.
showAllPostsSELECT
OPTIONALRetrieve all posts.
filterSTRING
OPTIONALUse Ghost Query Language to build complex query.Example - featured:false.
Code Snippet
unirest.post("https://GhostdimasV1.p.rapidapi.com/getAllPosts")
.header("X-RapidAPI-Host", "GhostdimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://GhostdimasV1.p.rapidapi.com/getAllPosts
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GhostdimasV1.p.rapidapi.com/getAllPosts")
.header("X-RapidAPI-Host", "GhostdimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication