Get information related to a specific blog such as it's contents, author, publish date, SEO related information.
Arguments
slug
String!Required
A short, human-readable, URL-friendly identifier of a blog. You can get slug value from the endpoint /service/application/content/v1.0/blogs/.
root_id
StringID given to the HTML element.
Response
custom_json
JSONCustom JSON object for specific use cases.
id
StringUnique identifier for an entry.
application
StringApplication ID - Identifier for a Sales channel.
archived
BooleanBoolean flag denoting whether blog is archived or not.
author
AuthorData related to author of blog.
content
[ResourceContent]Contents of blog.
date_meta
DateMetaDetails related to resource creation and updation.
feature_image
AssetData related to image.
published
BooleanBoolean flag denoting whether blog is published or not.
reading_time
StringEstimated time required to read the blog.
seo
BlogSEODetails related to SEO of an entry.
slug
StringA short, human-readable, URL-friendly identifier.
tags
[String]Tags under a blog.
publish_date
StringTimestamp denoting when the blog was published.
title
StringTitle of the Blog.
summary
StringA brief description of blog.
status
StringStatus of the blog.
Query
1query blog($slug: String!, $root_id: String) {2 blog(slug: $slug, root_id: $root_id) {3 custom_json4 id5 application6 archived7 author {8 designation9 id10 name11 }12 content {13 type14 value15 }16 date_meta {17 created_on18 modified_on19 }20 feature_image {21 aspect_ratio22 id23 secure_url24 }25 published26 reading_time27 seo {28 title29 description30 canonical_url31 }32 slug33 tags34 publish_date35 title36 summary37 status38 }39}
Try it
Input Variables
1{2 "slug": "slug",3 "root_id": "root_id"4}
Response
1{2 "blog": {3 "custom_json": {},4 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",5 "application": "application",6 "archived": true,7 "author": {8 "designation": "designation",9 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",10 "name": "A name"11 },12 "content": [13 {14 "type": "type",15 "value": "value"16 }17 ],18 "date_meta": {19 "created_on": "created_on",20 "modified_on": "modified_on"21 },22 "feature_image": {23 "aspect_ratio": "aspect_ratio",24 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",25 "secure_url": "secure_url"26 },27 "published": true,28 "reading_time": "reading_time",29 "seo": {30 "title": "title",31 "description": "A description",32 "canonical_url": "canonical_url"33 },34 "slug": "slug",35 "tags": [36 "tags"37 ],38 "publish_date": "publish_date",39 "title": "title",40 "summary": "summary",41 "status": "status"42 }43}
Was this section helpful?