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

List of the shop's attributes.



```graphql
attributes(filter: AttributeFilterInput, where: AttributeWhereInput, search: String, sortBy: AttributeSortingInput, channel: String, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
```

## Returns

[`AttributeCountableConnection`](/api-reference/attributes/objects/attribute-countable-connection)

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


```graphql
type AttributeCountableConnection {
  pageInfo: PageInfo!
  edges: [AttributeCountableEdge!]!
  totalCount: Int
}
```


</details>

## Arguments

### filter [#filter]

**`filter`** · [`AttributeFilterInput`](/api-reference/attributes/inputs/attribute-filter-input)

Filtering options for attributes.

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


### where [#where]

**`where`** · [`AttributeWhereInput`](/api-reference/attributes/inputs/attribute-where-input)

Where filtering options for attributes.

### search [#search]

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

Search attributes.

### sortBy [#sort-by]

**`sortBy`** · [`AttributeSortingInput`](/api-reference/attributes/inputs/attribute-sorting-input)

Sorting options for attributes.

### 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.

---

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