Retrieves a list of collections in a store. Collections are groups of products that merchants can organize for display in their online store and other sales channels. For example, an athletics store might create different collections for running attire, shoes, and accessories.
Use the collections
query when you need to:
The collections
query supports pagination for large catalogs and saved searches for frequently used collection queries.
The collections
query returns collections with their associated metadata, including:
Learn more about using metafields with smart collections.
CollectionConnection!The elements that come after the specified cursor.
The elements that come before the specified cursor.
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
Filter by a case-insensitive search of multiple fields in a document.
Example:
query=Bob Norman
query=title:green hoodie
Valid values:
custom
smart
Filter by id
range.
Example:
id:1234
id:>=1234
id:<=1234
Filter by collections containing a product by its ID.
Filter by the publication status of the resource on a channel, such as the online store. The value is a composite of the channel app
ID (Channel.app.id
) and one of the valid values.
Valid values:
approved
rejected
needs_action
awaiting_review
published
demoted
scheduled
provisionally_published
Example:
product_publication_status:189769876-approved
Filter by the publishable status of the resource on a channel, such as the online store. The value is a composite of either the channel app
ID (Channel.app.id
) or channel name
and one of the valid values.
Valid values:
online_store_channel
published
unpublished
visible
unavailable
hidden
intended
visible
Example:
publishable_status:published
publishable_status:189769876-visible
publishable_status:pos-hidden
Filter by the date and time when the collection was published to the Online Store.
Filter by the published status of the resource on a channel, such as the online store.
Valid values:
unset
pending
approved
not approved
Example:
published_status:approved
Reverse the order of the underlying list.
The ID of a saved search. The search’s query string is used as the query argument.
The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
A list of nodes that are contained in CollectionEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
query { collections(first: 10, query: "title:All*") { edges { node { id title handle updatedAt } } } }
curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-07/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query { collections(first: 10, query: \"title:All*\") { edges { node { id title handle updatedAt } } } }" }'
const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query { collections(first: 10, query: "title:All*") { edges { node { id title handle updatedAt } } } }`, ); const data = await response.json();
const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query { collections(first: 10, query: "title:All*") { edges { node { id title handle updatedAt } } } }`, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query { collections(first: 10, query: "title:All*") { edges { node { id title handle updatedAt } } } } QUERY response = client.query(query: query)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4