---
title: collection Query
seo:
  title: collection Query
  description: 'Query: collection Query'
slug: api-reference/products/queries/collection
sidebar:
  label: collection
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

Look up a collection by ID, slug or external reference. If slugLanguageCode is provided, category will be fetched by slug translation. 

Requires one of the following permissions to include the unpublished items: `MANAGE_ORDERS`, `MANAGE_DISCOUNTS`, `MANAGE_PRODUCTS`.





```graphql
collection(id: ID, slug: String, slugLanguageCode: LanguageCodeEnum, externalReference: String, channel: String): Collection
```

## Returns

[`Collection`](/api-reference/products/objects/collection)

<details>
<summary>Show return type</summary>


```graphql
type Collection implements Node & ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  seoTitle: String
  seoDescription: String
  name: String!
  description: JSONString
  fullDescription: JSONString
  slug: String!
  externalReference: String
  channel: String
  descriptionJson: JSONString @deprecated(reason: "Use the `description` field instead.")
  products(filter: ProductFilterInput @deprecated(reason: "Use `where` filter instead."), where: ProductWhereInput, search: String, sortBy: ProductOrder, before: String, after: String, first: Int, last: Int): ProductCountableConnection
  backgroundImage(size: Int, sizeRounding: ThumbnailSizeRoundingEnum = NEAREST, format: ThumbnailFormatEnum = ORIGINAL): Image
  translation(languageCode: LanguageCodeEnum!): CollectionTranslation
  channelListings: [CollectionChannelListing!]
}
```


</details>

## Arguments

### id [#id]

**`id`** · [`ID`](/api-reference/miscellaneous/scalars/id)

ID of the collection.

### slug [#slug]

**`slug`** · [`String`](/api-reference/miscellaneous/scalars/string)

Slug of the collection

### slugLanguageCode [#slug-language-code]

**`slugLanguageCode`** · [`LanguageCodeEnum`](/api-reference/miscellaneous/enums/language-code-enum)

Language code of the collection slug, omit to use primary slug.



### externalReference [#external-reference]

**`externalReference`** · [`String`](/api-reference/miscellaneous/scalars/string)

External ID of the collection.

Added in Saleor 3.23

### channel [#channel]

**`channel`** · [`String`](/api-reference/miscellaneous/scalars/string)

Slug of a channel for which the data should be returned.

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
