go-unifi

Get Latest Adopted Device Statistics

Retrieve the latest real-time statistics of a specific adopted device, such as uptime, data transmission rates, CPU and memory utilization.

GET
/v1/sites/{siteId}/devices/{deviceId}/statistics/latest

Retrieve the latest real-time statistics of a specific adopted device, such as uptime, data transmission rates, CPU and memory utilization.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

siteId*string
deviceId*string

Response Body

application/json

curl -X GET "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/devices/497f6eca-6276-4993-bfeb-53cbbbba6f08/statistics/latest"
{  "uptimeSec": 0,  "lastHeartbeatAt": "2019-08-24T14:15:22Z",  "nextHeartbeatAt": "2019-08-24T14:15:22Z",  "loadAverage1Min": 0.1,  "loadAverage5Min": 0.1,  "loadAverage15Min": 0.1,  "cpuUtilizationPct": 0.1,  "memoryUtilizationPct": 0.1,  "uplink": {    "txRateBps": 0,    "rxRateBps": 0  },  "interfaces": {    "radios": [      {        "frequencyGHz": 2.4,        "txRetriesPct": 0.1      }    ]  }}