On this page

    1. Home
    2. API
    3. API Reference
    4. Stats
    5. Leaderboard

    Leaderboard

    The leaderboard endpoint returns a ranked list of the top bandwidth providers across the URnetwork. Networks can choose whether or not to be publicly visible on this leaderboard.


    POST /stats/leaderboard

    Retrieve the current network leaderboard showing the highest earners and providers.

    Request

    POST /stats/leaderboard

    Headers:

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

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "earners": [
        {
          "network_id": "string",
          "network_name": "string",
          "net_mib_count": 0,
          "is_public": true,
          "contains_profanity": false
        }
      ],
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    earnersarrayA list of top-performing networks.
    earners[].network_idstringUnique identifier for the network.
    earners[].network_namestringThe display name of the network (or masked if private).
    earners[].net_mib_countnumberTotal MiB provided by this network.
    earners[].is_publicbooleanWhether the network has opted in to public display.
    earners[].contains_profanitybooleanSafety flag for the network name.
    errorobjectOptional error details.

    Example

    HTTP Request

    POST /stats/leaderboard HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Content-Type: application/json
     
    {}

    Successful HTTP Response

    {
      "earners": [
        {
          "network_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
          "network_name": "TopProvider1",
          "net_mib_count": 1048576,
          "is_public": true,
          "contains_profanity": false
        }
      ],
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents