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

List of the shop's products. 

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





```graphql
products(filter: ProductFilterInput, where: ProductWhereInput, sortBy: ProductOrder, search: String, channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
```

## Returns

[`ProductCountableConnection`](/api-reference/products/objects/product-countable-connection)

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


```graphql
type ProductCountableConnection {
  pageInfo: PageInfo!
  edges: [ProductCountableEdge!]!
  totalCount: Int
}
```


</details>

## Arguments

### filter [#filter]

**`filter`** · [`ProductFilterInput`](/api-reference/products/inputs/product-filter-input)

Filtering options for products.

:::warning[Deprecated]
Use `where` filter instead.
:::


### where [#where]

**`where`** · [`ProductWhereInput`](/api-reference/products/inputs/product-where-input)

Where filtering options for products.

### sortBy [#sort-by]

**`sortBy`** · [`ProductOrder`](/api-reference/products/inputs/product-order)

Sort products.

### search [#search]

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

Search products.

### channel [#channel]

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

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

### before [#before]

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

Return the elements in the list that come before the specified cursor.

### after [#after]

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

Return the elements in the list that come after the specified cursor.

### first [#first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

### last [#last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

## Try it


**Find products in your sandbox**

Use your channel slug to fetch products and their variant IDs. No token is needed for a public channel.

Send to your sandbox's /graphql/ endpoint.

```graphql
query Products($channel: String!) {
  products(first: 5, channel: $channel) {
    edges {
      node {
        id
        name
        variants { id name }
      }
    }
  }
}
```

```json Variables
{
  "channel": "default-channel"
}
```


---

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