Menu
products
Returns a paginated list of the shop's products. For full-text storefront search, use the search query instead.
Use it in a workflow
- Add a step and choose the Shopify Storefront connector.
- Pick the products action (under Products).
- Fill in the fields below, then reference the result from later steps as
{{products.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 Products($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: ProductSortKeys, $query: String) {
products(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
availableForSale
category
compareAtPriceRange
createdAt
descriptionHtml
encodedVariantAvailability
encodedVariantExistence
featuredImage
handle
id
isGiftCard
onlineStoreUrl
priceRange
productType
publishedAt
requiresSellingPlan
seo
tags
title
totalInventory
trackingParameters
updatedAt
variantsCount
vendor
}
}
filters {
id
label
presentation
type
values {
count
id
image
input
label
swatch
}
}
nodes {
availableForSale
category {
ancestors
id
name
}
compareAtPriceRange {
maxVariantPrice
minVariantPrice
}
createdAt
descriptionHtml
encodedVariantAvailability
encodedVariantExistence
featuredImage {
altText
height
id
originalSrc
src
thumbhash
width
}
handle
id
isGiftCard
onlineStoreUrl
priceRange {
maxVariantPrice
minVariantPrice
}
productType
publishedAt
requiresSellingPlan
seo {
description
title
}
tags
title
totalInventory
trackingParameters
updatedAt
variantsCount {
count
precision
}
vendor
}
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": "TITLE",
"query": "string"
}
Response
Read the result with {{products.response.data.data.products}}. If the API returns errors, the step fails and they are at {{products.response.data.errors}}.
Need more? See the Shopify Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?