Get a keyword by ID or slug
const url = 'https://api.example.com/cms/keyword/example';const options = {method: 'GET', headers: {'API-Key': '<API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.example.com/cms/keyword/example \ --header 'API-Key: <API-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Keyword found
API representation of a keyword
object
Keyword ID
The page builder template to render a category, publication, article, author or keyword with (the layoutTemplate field of their views). For category, author, keyword and article pages, prefer their /layout endpoint (e.g. GET /cms/category/{category_id}/layout), which returns the object and this template already filled in one call. Otherwise fetch the layout with GET /cms/layout/key/{key}, or GET /cms/layout/{id} when key is null.
object
Layout ID of the template
Stable key of the template; null when not set
Template name
Why this template applies, most specific first: the content type (article templates only), the category itself, a parent category, or the publication; for author and keyword templates, the author or keyword itself
What the template is used for
ID of the content type, category, publication, author or keyword
Name
URL
Slug
Description
Articles count
If this keyword was replaced, id of replacement
Display name
Translations
Collection id
Image URL
Example
{ "layoutTemplate": { "id": 31, "key": "opinion-article", "name": "Opinion article", "matchedBy": "article_type", "targetType": "article_type", "targetId": 14 }}Keyword not found