Menu
blog
Retrieves a Blog by its handle or ID. A blog organizes Article objects for the online store and includes author information, SEO settings, and custom Metafield objects.
Use it in a workflow
- Add a step and choose the Shopify Storefront connector.
- Pick the blog action (under Blog).
- Fill in the fields below, then reference the result from later steps as
{{blog.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Blog($handle: String, $id: ID) {
blog(handle: $handle, id: $id) {
authors {
bio
email
firstName
lastName
name
}
handle
id
onlineStoreUrl
seo {
description
title
}
title
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"handle": "string",
"id": "string"
}
Response
Read the result with {{blog.response.data.data.blog}}. If the API returns errors, the step fails and they are at {{blog.response.data.errors}}.
Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?