--- title: Location - Storefront API description: Represents a location where product inventory is held. api_version: 2025-10 api_name: storefront type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/objects/location md: https://shopify.dev/docs/api/storefront/latest/objects/location.md --- # Location object Requires `unauthenticated_read_product_pickup_locations` access scope. Represents a location where product inventory is held. ## Fields * address [Location​Address!](https://shopify.dev/docs/api/storefront/latest/objects/LocationAddress) non-null The address of the location. * id [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID) non-null A globally-unique ID. * metafield [Metafield](https://shopify.dev/docs/api/storefront/latest/objects/Metafield) Token access required A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information. * metafields [\[Metafield\]!](https://shopify.dev/docs/api/storefront/latest/objects/Metafield) non-null Token access required A list of [custom fields](https://shopify.dev/docs/apps/build/custom-data) that a merchant associates with a Shopify resource. * name [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) non-null The name of the location. *** ## Map ### Fields and connections with this object * <->[LocationConnection.nodes](https://shopify.dev/docs/api/storefront/latest/connections/LocationConnection#returns-nodes) * {}[LocationEdge.node](https://shopify.dev/docs/api/storefront/latest/objects/LocationEdge#field-LocationEdge.fields.node) * {}[StoreAvailability.location](https://shopify.dev/docs/api/storefront/latest/objects/StoreAvailability#field-StoreAvailability.fields.location) ### Possible type in * [Metafield​Parent​Resource](https://shopify.dev/docs/api/storefront/latest/unions/MetafieldParentResource) *** ## Queries * [locations](https://shopify.dev/docs/api/storefront/latest/queries/locations) query List of the shop's locations that support in-store pickup. When sorting by distance, you must specify a location via the `near` argument. *** ## \Location Queries ### Queried by * \[locations](https://shopify.dev/docs/api/storefront/latest/queries/locations) *** ## Interfaces * * [Has​Metafields](https://shopify.dev/docs/api/storefront/latest/interfaces/HasMetafields) interface * [Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node) interface *** ## ||-Location Implements ### Implements * ||-[Has​Metafields](https://shopify.dev/docs/api/storefront/latest/interfaces/HasMetafields) * ||-[Node](https://shopify.dev/docs/api/storefront/latest/interfaces/Node)