# Product Projections

**Query and retrieve [Product Projections](/api/product-catalog-overview.md#product-projection) with the GraphQL API.**

## Queries

### Query Product Projections

You can retrieve [Product Projections](/api/projects/productProjections.md) with [Query Products](/api/graphql/products.md#query-products). Find on this page how to [select the current or staged Product Projection](/api/graphql/product-projections.md#select-the-current-or-staged-product-projection), [project by locale](/api/graphql/product-projections.md#project-by-locale), and [apply price selection](/api/graphql/product-projections.md#apply-price-selection) with the `products` query.

### Get Product Projection

To retrieve the projection of a single Product, use the [Get Product](/api/graphql/products.md#get-product) query and select the `current` or `staged` Projection in `masterData`. The `product` query also supports the `localeProjection` and `projectExpandedProducts` arguments.

```graphql title="Example query to retrieve the current Product Projection of a Product by key"
query {
  product(key: "my-product-key") {
    id
    masterData {
      current {
        name(locale: "en")
        slug(locale: "en")
      }
    }
  }
}
```

## Projection options

### Select the current or staged Product Projection

A published Product has a `current` [Product Projection](/api/projects/productProjections.md), and every Product has a `staged` Product Projection. Select the `current` field to retrieve published data, or the `staged` field to retrieve data that includes unpublished changes.

```graphql title="Example query to select the current and staged Product Projection"
query {
  products(limit: 20) {
    total
    results {
      key
      masterData {
        published
        hasStagedChanges
        current {
          name(locale: "en")
        }
        staged {
          name(locale: "en")
        }
      }
    }
  }
}
```

### Project by locale

Use the `localeProjection` argument to filter localized fields, such as `nameAllLocales`, to the specified locales. All other locales are removed from the response. If a field has no translation for the requested locales, the API falls back to the [Project](/search.md?urn=ctp:api:type:Project) languages in the order configured on the Project.

```graphql title="Example query to project Products on a locale"
query {
  products(localeProjection: ["de"]) {
    results {
      key
      masterData {
        current {
          nameAllLocales {
            locale
            value
          }
        }
      }
    }
  }
}
```

### Apply price selection

You can apply [price selection](/api/pricing-and-discounts-apis-overview.md#price-selection-in-api-responses) on a Product Variant with the `price` field. The arguments have similar names to the Products API, but without the `price` prefix. For example, use `currency` and `country` instead of `priceCurrency` and `priceCountry`.

```graphql title="Example query to apply price selection"
query {
  products {
    results {
      key
      masterData {
        current {
          masterVariant {
            price(currency: "USD", country: "US") {
              value {
                centAmount
              }
            }
          }
        }
      }
    }
  }
}
```

## Related pages

- [Area overview page with navigation](/api.md)
- [Previous page: REST](/api/projects/productProjections.md)
- [Search documentation and API specs](/search.md)