Ghost Tags API
The Tags API from Ghost — 3 operation(s) for tags.
The Tags API from Ghost — 3 operation(s) for tags.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ghost-org-tags-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ghost Org Tags API
version: '5.0'
termsOfService: https://ghost.org/terms/
description: 'Operations tagged Tags across 2 of this provider''s published API definitions: ghost-org-admin-api-openapi.yml, ghost-org-content-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{site}.ghost.io/ghost/api/admin
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/admin'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
- url: https://{site}.ghost.io/ghost/api/content
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/content'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
tags:
- name: Tags
paths:
/tags/:
get:
operationId: adminBrowseTags
summary: Browse tags
description: Retrieve a paginated list of all tags, including internal tags.
tags:
- Tags
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/filter'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/order'
responses:
'200':
description: A list of tags
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
meta:
$ref: '#/components/schemas/PaginationMeta'
'401':
$ref: '#/components/responses/Unauthorized'
security:
- adminApiToken: []
post:
operationId: adminCreateTag
summary: Create a tag
description: Create a new tag. The name field is required. Tags with names starting with a hash character are treated as internal tags.
tags:
- Tags
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- tags
properties:
tags:
type: array
items:
$ref: '#/components/schemas/TagInput'
minItems: 1
maxItems: 1
responses:
'201':
description: Tag created successfully
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
'401':
$ref: '#/components/responses/Unauthorized'
'422':
$ref: '#/components/responses/ValidationError'
security:
- adminApiToken: []
servers:
- url: https://{site}.ghost.io/ghost/api/admin
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/admin'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
/tags/{id}/:
get:
operationId: adminReadTag
summary: Read a tag by ID
description: Retrieve a single tag by its unique identifier.
tags:
- Tags
parameters:
- $ref: '#/components/parameters/resourceId'
- $ref: '#/components/parameters/fields'
responses:
'200':
description: A single tag
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
minItems: 1
maxItems: 1
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
security:
- adminApiToken: []
put:
operationId: adminUpdateTag
summary: Update a tag
description: Update an existing tag by its unique identifier.
tags:
- Tags
parameters:
- $ref: '#/components/parameters/resourceId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- tags
properties:
tags:
type: array
items:
$ref: '#/components/schemas/TagInput'
minItems: 1
maxItems: 1
responses:
'200':
description: Tag updated successfully
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/ValidationError'
security:
- adminApiToken: []
delete:
operationId: adminDeleteTag
summary: Delete a tag
description: Permanently delete a tag by its unique identifier.
tags:
- Tags
parameters:
- $ref: '#/components/parameters/resourceId'
responses:
'204':
description: Tag deleted successfully
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
security:
- adminApiToken: []
servers:
- url: https://{site}.ghost.io/ghost/api/admin
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/admin'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
/tags/slug/{slug}/:
get:
operationId: readTagBySlug
summary: Read a tag by slug
description: Retrieve a single tag by its URL slug.
tags:
- Tags
parameters:
- $ref: '#/components/parameters/resourceSlug'
- $ref: '#/components/parameters/includeTagRelations'
- $ref: '#/components/parameters/fields_2'
responses:
'200':
description: A single tag
content:
application/json:
schema:
type: object
properties:
tags:
type: array
items:
$ref: '#/components/schemas/Tag_2'
minItems: 1
maxItems: 1
'401':
$ref: '#/components/responses/Unauthorized_2'
'404':
$ref: '#/components/responses/NotFound'
security:
- contentApiKey: []
servers:
- url: https://{site}.ghost.io/ghost/api/content
description: Ghost Pro Hosted Site
variables:
site:
default: your-site
description: Your Ghost site subdomain
- url: '{protocol}://{domain}/ghost/api/content'
description: Self-Hosted Ghost Instance
variables:
protocol:
default: https
enum:
- https
- http
domain:
default: localhost:2368
description: Your Ghost instance domain and port
components:
parameters:
resourceId:
name: id
in: path
required: true
description: The unique identifier of the resource
schema:
type: string
format: uuid
page:
name: page
in: query
required: false
description: Page number for paginated results. Defaults to 1.
schema:
type: integer
minimum: 1
default: 1
fields:
name: fields
in: query
required: false
description: Comma-separated list of fields to return in the response.
schema:
type: string
order:
name: order
in: query
required: false
description: Field and direction to order results by.
schema:
type: string
limit:
name: limit
in: query
required: false
description: Maximum number of resources to return per page. Defaults to 15.
schema:
oneOf:
- type: integer
minimum: 1
- type: string
enum:
- all
default: 15
filter:
name: filter
in: query
required: false
description: Apply fine-grained filters using Ghost's NQL query language.
schema:
type: string
fields_2:
name: fields
in: query
required: false
description: Comma-separated list of fields to return in the response. Use this to limit the size of the response by only requesting the fields you need.
schema:
type: string
includeTagRelations:
name: include
in: query
required: false
description: Include a count of posts associated with each tag.
schema:
type: string
enum:
- count.posts
order_2:
name: order
in: query
required: false
description: Field and direction to order results by, for example published_at DESC or title ASC.
schema:
type: string
limit_2:
name: limit
in: query
required: false
description: Maximum number of resources to return per page. Defaults to 15. Use all to return all resources without pagination.
schema:
oneOf:
- type: integer
minimum: 1
- type: string
enum:
- all
default: 15
filter_2:
name: filter
in: query
required: false
description: Apply fine-grained filters using Ghost's NQL query language. Examples include featured:true, tag:getting-started, visibility:public, and combinations using plus and comma operators.
schema:
type: string
resourceSlug:
name: slug
in: path
required: true
description: The URL slug of the resource
schema:
type: string
schemas:
ErrorResponse:
type: object
description: Standard Ghost API error response
properties:
errors:
type: array
items:
type: object
properties:
message:
type: string
description: Human-readable error message
type:
type: string
description: Error type identifier
context:
type: string
description: Additional error context
nullable: true
Tag:
type: object
description: A tag for organizing and categorizing content.
properties:
id:
type: string
format: uuid
description: Unique identifier
name:
type: string
description: Tag name
slug:
type: string
description: URL-safe slug
description:
type: string
description: Tag description
nullable: true
feature_image:
type: string
format: uri
description: Featured image URL
nullable: true
visibility:
type: string
description: Visibility setting
enum:
- public
- internal
og_image:
type: string
format: uri
nullable: true
description: Open Graph image URL
og_title:
type: string
nullable: true
description: Open Graph title
og_description:
type: string
nullable: true
description: Open Graph description
twitter_image:
type: string
format: uri
nullable: true
description: Twitter card image URL
twitter_title:
type: string
nullable: true
description: Twitter card title
twitter_description:
type: string
nullable: true
description: Twitter card description
meta_title:
type: string
nullable: true
description: SEO meta title
meta_description:
type: string
nullable: true
description: SEO meta description
codeinjection_head:
type: string
nullable: true
description: Code injection in the head
codeinjection_foot:
type: string
nullable: true
description: Code injection in the foot
canonical_url:
type: string
format: uri
nullable: true
description: Canonical URL
accent_color:
type: string
nullable: true
description: Accent color hex code
pattern: ^#[0-9a-fA-F]{6}$
url:
type: string
format: uri
description: Full URL of the tag page
created_at:
type: string
format: date-time
description: Creation timestamp
updated_at:
type: string
format: date-time
description: Last update timestamp
PaginationMeta:
type: object
description: Pagination metadata
properties:
pagination:
type: object
properties:
page:
type: integer
description: Current page
minimum: 1
limit:
type: integer
description: Items per page
minimum: 1
pages:
type: integer
description: Total pages
minimum: 1
total:
type: integer
description: Total items
minimum: 0
next:
type: integer
description: Next page number
nullable: true
prev:
type: integer
description: Previous page number
nullable: true
TagInput:
type: object
description: Input fields for creating or updating a tag.
required:
- name
properties:
name:
type: string
description: Tag name, prefix with hash for internal tags
slug:
type: string
description: Custom URL slug
description:
type: string
description: Tag description
nullable: true
feature_image:
type: string
format: uri
description: Featured image URL
nullable: true
visibility:
type: string
description: Visibility setting
enum:
- public
- internal
meta_title:
type: string
nullable: true
description: SEO meta title
meta_description:
type: string
nullable: true
description: SEO meta description
accent_color:
type: string
nullable: true
description: Accent color hex code
pattern: ^#[0-9a-fA-F]{6}$
ErrorResponse_2:
type: object
description: Standard Ghost API error response
properties:
errors:
type: array
items:
type: object
properties:
message:
type: string
description: Human-readable error message
type:
type: string
description: Error type identifier
context:
type: string
description: Additional context about the error
nullable: true
Tag_2:
type: object
description: A tag is used to organize and categorize content in Ghost. Tags with slugs starting with hash are internal tags not visible to readers.
properties:
id:
type: string
format: uuid
description: Unique identifier for the tag
name:
type: string
description: Name of the tag
slug:
type: string
description: URL-safe slug for the tag
description:
type: string
description: Description of the tag
nullable: true
feature_image:
type: string
format: uri
description: Featured image URL for the tag
nullable: true
visibility:
type: string
description: Visibility of the tag
enum:
- public
- internal
og_image:
type: string
format: uri
description: Open Graph image for the tag page
nullable: true
og_title:
type: string
description: Open Graph title for the tag page
nullable: true
og_description:
type: string
description: Open Graph description for the tag page
nullable: true
twitter_image:
type: string
format: uri
description: Twitter card image for the tag page
nullable: true
twitter_title:
type: string
description: Twitter card title for the tag page
nullable: true
twitter_description:
type: string
description: Twitter card description for the tag page
nullable: true
meta_title:
type: string
description: SEO meta title for the tag page
nullable: true
meta_description:
type: string
description: SEO meta description for the tag page
nullable: true
codeinjection_head:
type: string
description: Code injected into the head on tag pages
nullable: true
codeinjection_foot:
type: string
description: Code injected into the foot on tag pages
nullable: true
canonical_url:
type: string
format: uri
description: Canonical URL for the tag page
nullable: true
accent_color:
type: string
description: Accent color for the tag
nullable: true
pattern: ^#[0-9a-fA-F]{6}$
url:
type: string
format: uri
description: Full URL of the tag page
count:
type: object
description: Count data, included when requested via include=count.posts
properties:
posts:
type: integer
description: Number of posts with this tag
minimum: 0
PaginationMeta_2:
type: object
description: Pagination metadata included in browse responses
properties:
pagination:
type: object
properties:
page:
type: integer
description: Current page number
minimum: 1
limit:
type: integer
description: Number of items per page
minimum: 1
pages:
type: integer
description: Total number of pages
minimum: 1
total:
type: integer
description: Total number of items across all pages
minimum: 0
next:
type: integer
description: Next page number, null if on last page
nullable: true
prev:
type: integer
description: Previous page number, null if on first page
nullable: true
responses:
ValidationError:
description: Request body validation failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
NotFound:
description: The requested resource was not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized:
description: Authentication failed or token is missing or invalid
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized_2:
description: Authentication failed or API key is missing
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse_2'
securitySchemes:
adminApiToken:
type: http
scheme: bearer
bearerFormat: JWT
description: JSON Web Token generated from an Admin API key. The key is split into an ID and secret at the colon separator. The ID is used as the kid header and the secret is used to sign the token with HS256.
contentApiKey:
type: apiKey
in: query
name: key
description: Content API key obtained from a custom integration in Ghost Admin. Content API keys are safe for use in browsers and other insecure environments as they only provide access to public data.
x-refined-from:
- ghost-org-admin-api-openapi.yml
- ghost-org-content-api-openapi.yml