> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /gs1/locations

> Resolve a GLN to the locations registered under it and the company that licensed it

**Price:** 10 credits



## OpenAPI

````yaml /openapi/company-registries.json post /api/gs1/locations
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/gs1/locations:
    post:
      tags:
        - /gs1
      summary: /gs1/locations
      description: >-
        Resolve a GLN to the locations registered under it and the company that
        licensed it


        **Price:** 10 credits
      operationId: __api_gs1_locations_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Gs1LocationsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Gs1LocationRecord'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Gs1LocationsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        gln:
          type: string
          maxLength: 13
          minLength: 13
      type: object
      required:
        - gln
    Gs1LocationRecord:
      properties:
        '@type':
          type: string
          default: Gs1LocationRecord
        gln:
          type: string
          default: ''
        locations:
          items:
            $ref: '#/components/schemas/Gs1Location'
          type: array
          default: []
        company:
          anyOf:
            - $ref: '#/components/schemas/Gs1Company'
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    Gs1Location:
      properties:
        '@type':
          type: string
          default: Gs1Location
        gln:
          type: string
          default: ''
        gln_type:
          type: string
          default: ''
        name:
          type: string
          default: ''
        language:
          type: string
          default: ''
        status:
          type: string
          default: ''
        roles:
          items:
            type: string
          type: array
          default: []
        parent_organization:
          type: string
          default: ''
        related_locations:
          type: string
          default: ''
        related_organizations:
          type: string
          default: ''
        contained_in_place:
          type: string
          default: ''
        additional_identifiers:
          type: string
          default: ''
        postal_name:
          type: string
          default: ''
        street_address:
          type: string
          default: ''
        address_locality:
          type: string
          default: ''
        postal_code:
          type: string
          default: ''
        country_code:
          type: string
          default: ''
        digital_address:
          type: string
          default: ''
        email:
          type: string
          default: ''
        telephone:
          type: string
          default: ''
        website:
          type: string
          default: ''
        available_languages:
          items:
            type: string
          type: array
          default: []
        provided_by:
          type: string
          default: ''
        updated_at:
          type: string
          default: ''
      type: object
    Gs1Company:
      properties:
        '@type':
          type: string
          default: Gs1Company
        name:
          type: string
          default: ''
        address:
          type: string
          default: ''
        website:
          type: string
          default: ''
        city:
          type: string
          default: ''
        country:
          type: string
          default: ''
        license_key:
          type: string
          default: ''
        license_type:
          type: string
          default: ''
        gln:
          type: string
          default: ''
        member_organization:
          type: string
          default: ''
        updated_at:
          type: string
          default: ''
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````