Shopify Locations API

Retrieve store locations

Operations 3

GET /locations.json Shopify Retrieve a list of locations #
GET /locations/count.json Shopify Retrieve a count of locations #
GET /locations/{location_id}.json Shopify Retrieve a single location #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/shopify-locations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

shopify-locations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shopify Admin REST About Locations API
  description: The Shopify Admin REST API lets you build apps and integrations that extend and enhance the Shopify admin. Access products, customers, orders, inventory, fulfillment, and more. Endpoints are organized by resource type and versioned by release date.
  version: 2025-01
  contact:
    name: Shopify
    url: https://shopify.dev/docs/api/admin-rest
    email: api@shopify.com
  license:
    name: Shopify API Terms
    url: https://www.shopify.com/legal/api-terms
  x-date: '2026-03-04'
servers:
- url: https://{store}.myshopify.com/admin/api/2025-01
  description: Shopify Admin REST API
  variables:
    store:
      default: my-store
      description: The Shopify store subdomain
security:
- AccessToken: []
tags:
- name: Locations
  description: Retrieve store locations
paths:
  /locations.json:
    get:
      operationId: listLocations
      summary: Shopify Retrieve a list of locations
      description: Retrieves a list of all locations for a shop.
      tags:
      - Locations
      responses:
        '200':
          description: A list of locations
          content:
            application/json:
              schema:
                type: object
                properties:
                  locations:
                    type: array
                    items:
                      $ref: '#/components/schemas/Location'
  /locations/count.json:
    get:
      operationId: getLocationCount
      summary: Shopify Retrieve a count of locations
      description: Retrieves a count of locations for a shop.
      tags:
      - Locations
      responses:
        '200':
          description: The location count
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
  /locations/{location_id}.json:
    get:
      operationId: getLocation
      summary: Shopify Retrieve a single location
      description: Retrieves a single location by ID.
      tags:
      - Locations
      parameters:
      - name: location_id
        in: path
        required: true
        description: The ID of the location
        schema:
          type: integer
      responses:
        '200':
          description: The requested location
          content:
            application/json:
              schema:
                type: object
                properties:
                  location:
                    $ref: '#/components/schemas/Location'
components:
  schemas:
    Location:
      type: object
      description: A physical location for inventory and fulfillment
      properties:
        id:
          type: integer
        name:
          type: string
        address1:
          type:
          - string
          - 'null'
        address2:
          type:
          - string
          - 'null'
        city:
          type:
          - string
          - 'null'
        province:
          type:
          - string
          - 'null'
        province_code:
          type:
          - string
          - 'null'
        country:
          type:
          - string
          - 'null'
        country_code:
          type: string
        zip:
          type:
          - string
          - 'null'
        phone:
          type:
          - string
          - 'null'
        active:
          type: boolean
        legacy:
          type: boolean
        localized_country_name:
          type: string
        localized_province_name:
          type:
          - string
          - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        admin_graphql_api_id:
          type: string
  securitySchemes:
    AccessToken:
      type: apiKey
      name: X-Shopify-Access-Token
      in: header
      description: Access token obtained via OAuth