Menu
articles
Returns a paginated list of articles from the shop's blogs. Article objects are blog posts that contain content like text, images, and tags.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the articles action (under Articles).
- Fill in the fields below, then reference the result from later steps as
{{articles.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 Articles($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: ArticleSortKeys, $query: String) {
articles(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
author
blog
body
createdAt
defaultCursor
handle
id
image
isPublished
publishedAt
summary
tags
templateSuffix
title
updatedAt
}
}
nodes {
author {
name
}
blog {
commentPolicy
createdAt
feed
handle
id
tags
templateSuffix
title
updatedAt
}
body
createdAt
defaultCursor
handle
id
image {
altText
height
id
originalSrc
src
thumbhash
width
}
isPublished
publishedAt
summary
tags
templateSuffix
title
updatedAt
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"sortKey": "AUTHOR",
"query": "string"
}
Response
Read the result with {{articles.response.data.data.articles}}. If the API returns errors, the step fails and they are at {{articles.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?