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

# pageType Query

Look up a page type by ID.

```graphql
pageType(
  id: ID!
): PageType
```

Details

```graphql
type PageType 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
  name: String!
  slug: String!
  attributes: [Attribute!]
  availableAttributes(
    filter: AttributeFilterInput
    where: AttributeWhereInput
    search: String
    before: String
    after: String
    first: Int
    last: Int
  ): AttributeCountableConnection
  hasPages: Boolean
}
```

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

### Arguments

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

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the page type.

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

### Type

<a id="pagetype"></a>

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

Represents a type of page. It defines what attributes are available to pages of this type.
