--- title: page - GraphQL Admin description: Returns a `Page` resource by ID. api_version: 2026-01 api_name: admin type: query api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/page' md: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/page.md' --- # page query Returns a `Page` resource by ID. ## Arguments * id *** ## Possible returns * Page *** ## Examples * ### Retrieves a single page by its ID #### Query ```graphql query PageShow($id: ID!) { page(id: $id) { id title handle } } ``` #### Variables ```json { "id": "gid://shopify/Page/602767277" } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2026-01/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query PageShow($id: ID!) { page(id: $id) { id title handle } }", "variables": { "id": "gid://shopify/Page/602767277" } }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query PageShow($id: ID!) { page(id: $id) { id title handle } }`, { variables: { "id": "gid://shopify/Page/602767277" }, }, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query PageShow($id: ID!) { page(id: $id) { id title handle } } QUERY variables = { "id": "gid://shopify/Page/602767277" } response = client.query(query: query, variables: variables) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: { "query": `query PageShow($id: ID!) { page(id: $id) { id title handle } }`, "variables": { "id": "gid://shopify/Page/602767277" }, }, }); ``` #### Response ```json { "page": { "id": "gid://shopify/Page/602767277", "title": "Sample Page", "handle": "samplepage" } } ```