On this page

    1. Home
    2. API
    3. API Reference
    4. Network
    5. Provider Locations

    Provider Locations

    This endpoint retrieves a comprehensive list of all locations where provider devices are available. It categorizes these by groups (clusters), specific geographical locations (cities, regions, countries), and individual devices.


    GET /network/provider-locations

    Retrieves the structural hierarchy of the global provider network.

    Request

    GET /network/provider-locations

    Headers:

    {
      "Host": "api.bringyour.com",
      "Accept": "application/json"
    }

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "specs": [],
      "groups": [
        {
          "location_group_id": "string",
          "name": "string",
          "provider_count": 0,
          "promoted": true,
          "match_distance": 0
        }
      ],
      "locations": [
        {
          "location_id": "string",
          "location_type": "city",
          "name": "string",
          "city": "string",
          "city_location_id": "string",
          "region": "string",
          "region_location_id": "string",
          "country": "string",
          "country_location_id": "string",
          "country_code": "string",
          "provider_count": 0,
          "match_distance": 0
        }
      ],
      "devices": [
        {
          "client_id": "string",
          "device_name": "string"
        }
      ]
    }

    Fields

    FieldTypeDescription
    groupsarrayClusters of providers organized by low-latency regions or specific groups.
    groups[].namestringThe display name of the provider group.
    groups[].provider_countintegerNumber of active providers in this group.
    locationsarrayList of geographical locations containing providers.
    locations[].location_typestringHierarchy level: country, region, or city.
    locations[].country_codestringTwo-letter ISO country code.
    devicesarrayList of specific individual provider devices if available.

    Example

    HTTP Request

    GET /network/provider-locations HTTP/1.1
    Host: api.bringyour.com
    Accept: application/json

    Successful HTTP Response

    {
      "groups": [
        {
          "location_group_id": "grp_us_east",
          "name": "US East Coast",
          "provider_count": 450,
          "promoted": true
        }
      ],
      "locations": [
        {
          "location_id": "loc_nyc",
          "location_type": "city",
          "name": "New York",
          "city": "New York City",
          "country_code": "US",
          "provider_count": 120
        }
      ],
      "devices": []
    }


    Powered by Sudoc v2.5.0
    Hide table of contents