On this page

    1. Home
    2. API
    3. API Reference
    4. Network
    5. Find Providers 2

    Find Providers 2

    This endpoint allows for a highly specific search for suitable provider nodes across the URnetwork. It enables multi-criteria filtering using an array of specifications, client exclusions, and performance ranking modes.


    POST /network/find-providers2

    Query the network for provider devices that match a list of geographic or instance-specific criteria.

    Request

    POST /network/find-providers2

    Headers:

    {
      "Host": "api.bringyour.com",
      "Content-Type": "application/json"
    }

    Body:

    {
      "specs": [
        {
          "location_id": "string",
          "location_group_id": "string",
          "client_id": "string",
          "best_available": true
        }
      ],
      "count": 5,
      "exclude_client_ids": ["string"],
      "exclude_destinations": [["string"]],
      "rank_mode": "quality"
    }

    Fields

    FieldTypeDescription
    specsarrayA list of ProviderSpec objects defining the search criteria.
    countintegerThe maximum number of providers to return.
    exclude_client_idsarrayA list of UDIDs to ignore in the search.
    exclude_destinationsarrayA nested list of destination client IDs to exclude.
    rank_modestringThe sorting algorithm. Currently only quality is supported.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "providers": [
        {
          "client_id": "string",
          "estimated_bytes_per_second": 0,
          "tier": 0,
          "intermediary_ids": ["string"]
        }
      ]
    }

    Fields

    FieldTypeDescription
    providersarrayList of matching provider results.
    providers[].client_idstringThe UDID of the recommended provider.
    providers[].estimated_bytes_per_secondintegerPredicted throughput for this connection.
    providers[].tierintegerPerformance tier assigned by the controller.
    providers[].intermediary_idsarrayUDIDs of relay nodes involved in this path.

    Example

    HTTP Request

    POST /network/find-providers2 HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
     
    {
      "specs": [
        {
          "location_id": "us-east-1",
          "best_available": true
        }
      ],
      "count": 2,
      "rank_mode": "quality"
    }

    Successful HTTP Response

    {
      "providers": [
        {
          "client_id": "550e8400-e29b-41d4-a716-446655440000",
          "estimated_bytes_per_second": 10485760,
          "tier": 1,
          "intermediary_ids": []
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents