--- title: segment - GraphQL Admin description: The Customer Segment. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/segment md: https://shopify.dev/docs/api/admin-graphql/latest/queries/segment.md --- # segment query The Customer Segment. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required Find a segment by ID. *** ## Possible returns * Segment [Segment](https://shopify.dev/docs/api/admin-graphql/latest/objects/Segment) A dynamic collection of customers based on specific criteria. *** ## Examples * ### segment reference ## Query Reference ```graphql { segment(id) { # segment fields } } ```