> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/pages/llms.txt)
> Source: https://docs.saleor.io/api-reference/pages/queries/page-types

# pageTypes Query

List of the page types.

```graphql
pageTypes(
  sortBy: PageTypeSortingInput
  filter: PageTypeFilterInput
  before: String
  after: String
  first: Int
  last: Int
): PageTypeCountableConnection
```

Details

```graphql
type PageTypeCountableConnection {
  pageInfo: PageInfo!
  edges: [PageTypeCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`PageTypeSortingInput`](/api-reference/pages/inputs/page-type-sorting-input.md)

Sort page types.

<a id="filter"></a>

#### [`filter`](#filter) ● [`PageTypeFilterInput`](/api-reference/pages/inputs/page-type-filter-input.md)

Filtering options for page types.

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="type"></a>

### Type

<a id="pagetypecountableconnection"></a>

#### [`PageTypeCountableConnection`](/api-reference/pages/objects/page-type-countable-connection.md)
