On this page

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

    title: Stats Providers short_name: Providers description: Get performance statistics for all providers in your network for the last 24 hours.

    Stats Providers

    This endpoint provides a summary of the performance and state of all provider devices within your network for the last 24 hours. Use this to monitor which devices are active and how much bandwidth they are contributing.


    GET /stats/providers

    Retrieves a detailed list of providers associated with the authenticated network, including uptime, transfer density, and estimated payouts.

    Request

    GET /stats/providers

    Headers:

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

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "created_time": "2025-01-20T12:00:00Z",
      "providers": [
        {
          "client_id": "d8e3-...",
          "connected": true,
          "connected_events_last_24h": [
            {
              "event_time": "2025-01-20T10:00:00Z",
              "connected": true
            }
          ],
          "uptime_last_24h": 23.5,
          "transfer_data_last_24h": 12.4,
          "payout_last_24h": 1.24,
          "search_interest_last_24h": 150,
          "contracts_last_24h": 45,
          "clients_last_24h": 12,
          "provide_mode": 2
        }
      ]
    }

    Fields

    FieldTypeDescription
    created_timestringISO 8601 timestamp of when this report was generated.
    providersarrayA list of provider devices and their performance metrics.
    providers[].client_idstringThe unique UDID of the provider client.
    providers[].connectedbooleanIndicates if the device is currently online and connected to the controller.
    providers[].uptime_last_24hnumberTotal number of hours the device was online in the last 24 hours.
    providers[].transfer_data_last_24hnumberTotal data provided in GiB during the specified period.
    providers[].payout_last_24hnumberTotal estimated earnings in USDC for the period.
    providers[].provide_modeintegerThe current Provision Mode set for this device.

    Enums

    Provision Mode

    ValueTitleDescription
    0DefaultStandard system behavior.
    1NoneDevice is registered but inactive.
    2NetworkProvides to the owner's private network.
    3Friends & FamilyProvides to trusted peer groups.
    4PublicProvides to the global URnetwork.
    5StreamOptimized for high-throughput streaming.

    Example

    HTTP Request

    GET /stats/providers HTTP/1.1
    Host: api.bringyour.com
    Authorization: Bearer YOUR_JWT_TOKEN
    Accept: application/json

    Successful HTTP Response

    {
      "created_time": "2025-01-20T15:30:00Z",
      "providers": [
        {
          "client_id": "a1b2-c3d4-e5f6",
          "connected": true,
          "uptime_last_24h": 24.0,
          "transfer_data_last_24h": 5.2,
          "payout_last_24h": 0.52,
          "provide_mode": 4
        }
      ]
    }


    Powered by Sudoc v2.5.0
    Hide table of contents