Below are examples of available endpoints and corresponding queries. These examples may not be up to date and offer complete details, so viewing the schema directly would be recommended.
curl "https://demo.ghost.io/ghost/api/v3/content/posts/?key=$GHOST_API_KEY" | json_ppposts(limit: 2, page: 3) {
edges {
node {
id
featureImage
metaDescription
sendEmailWhenPublished
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
meta {
pagination{
limit
next
page
pages
prev
total
}
}
}curl "https://demo.ghost.io/ghost/api/v3/content/posts/5b7ada404f87d200b5b1f9c8/?key=$GHOST_API_KEY" | json_pppost(id: "5b7ada404f87d200b5b1f9c8") {
id
featureImage
metaDescription
sendEmailWhenPublished
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/posts/slug/welcome/?key=$GHOST_API_KEY" | json_pppost(slug: "welcome") {
id
featureImage
metaDescription
sendEmailWhenPublished
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/authors/?key=$GHOST_API_KEY" | json_ppauthors(limit: 2, page: 1) {
edges {
node {
id
profileImage
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
meta {
pagination{
limit
next
page
pages
prev
total
}
}
}curl "https://demo.ghost.io/ghost/api/v3/content/authors/5979a779df093500228e958e/?key=$GHOST_API_KEY" | json_pppost(id: "5979a779df093500228e9590") {
id
featureImage
metaDescription
sendEmailWhenPublished
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/authors/slug/lewis/?key=$GHOST_API_KEY" | json_ppauthor(slug: "cameron") {
id
featureImage
metaDescription
sendEmailWhenPublished
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/tags/?key=$GHOST_API_KEY" | json_pptags(limit: 2, page: 1) {
edges {
node {
id
description
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
meta {
pagination{
limit
next
page
pages
prev
total
}
}
}curl "https://demo.ghost.io/ghost/api/v3/content/tags/5979a779df093500228e958b/?key=$GHOST_API_KEY" | json_pptag(id: "5979a779df093500228e958a") {
id
description
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/tags/slug/speeches/?key=$GHOST_API_KEY" | json_pptag(slug: "fables") {
id
featureImage
metaDescription
sendEmailWhenPublished
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/pages/?key=$GHOST_API_KEY" | json_pppages(limit: 2, page: 1) {
edges {
node {
id
createdAt
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
meta {
pagination{
limit
next
page
pages
prev
total
}
}
}curl "https://demo.ghost.io/ghost/api/v3/content/pages/5979a4d6df093500228e9582/?key=$GHOST_API_KEY" | json_pppage(id: "5979a4d6df093500228e9582") {
id
description
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/pages/slug/about/?key=$GHOST_API_KEY" | json_pppage(slug: "about") {
id
description
slug
}curl "https://demo.ghost.io/ghost/api/v3/content/settings/?key=$GHOST_API_KEY" | json_ppsettings {
title
description
}