--- title: locations - Storefront API description: |+ List of the shop's locations that support in-store pickup. When sorting by distance, you must specify a location via the `near` argument. api_version: 2025-01 api_name: storefront type: query api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2025-01/queries/locations' md: 'https://shopify.dev/docs/api/storefront/2025-01/queries/locations.md' --- # locations query Requires `unauthenticated_read_product_pickup_locations` access scope. List of the shop's locations that support in-store pickup. When sorting by distance, you must specify a location via the `near` argument. ## LocationConnection arguments [LocationConnection!](https://shopify.dev/docs/api/storefront/2025-01/connections/LocationConnection) * after [String](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) Returns the elements that come after the specified cursor. * before [String](https://shopify.dev/docs/api/storefront/2025-01/scalars/String) Returns the elements that come before the specified cursor. * first [Int](https://shopify.dev/docs/api/storefront/2025-01/scalars/Int) Returns up to the first `n` elements from the list. * last [Int](https://shopify.dev/docs/api/storefront/2025-01/scalars/Int) Returns up to the last `n` elements from the list. * near [Geo​Coordinate​Input](https://shopify.dev/docs/api/storefront/2025-01/input-objects/GeoCoordinateInput) Used to sort results based on proximity to the provided location. * reverse [Boolean](https://shopify.dev/docs/api/storefront/2025-01/scalars/Boolean) Default:false Reverse the order of the underlying list. * sort​Key [Location​Sort​Keys](https://shopify.dev/docs/api/storefront/2025-01/enums/LocationSortKeys) Default:ID Sort the underlying list by the given key. *** ## Possible returns * edges [\[Location​Edge!\]!](https://shopify.dev/docs/api/storefront/2025-01/objects/LocationEdge) non-null A list of edges. * nodes [\[Location!\]!](https://shopify.dev/docs/api/storefront/2025-01/objects/Location) non-null A list of the nodes contained in LocationEdge. * page​Info [Page​Info!](https://shopify.dev/docs/api/storefront/2025-01/objects/PageInfo) non-null Information to aid in pagination. *** ## Examples * ### locations reference ## Query Reference ```graphql { locations { # locations fields } } ```