UniFi Network API (v2) — aggregated dashboard.
Returns the pre-aggregated payload that powers the controller's
dashboard view: client/device counts, traffic totals, top apps, top
clients, and time-series for the configured history window. A single
network call instead of stitching together
UnifiApi.Network.Clients, Devices, Traffic, etc.
Requires cookie + CSRF authentication. See UnifiApi.Auth.Cookie.
Response shape
Map with at least:
clients— current totals broken down by typedevices— current totals broken down by type and statetraffic— totals + time series for the windowtopClients,topAppswanStatus— per-WAN reachability
Summary
Functions
Returns the aggregated dashboard payload.
Functions
@spec get(Req.Request.t(), String.t(), keyword()) :: {:ok, term()} | {:error, UnifiApi.Error.t()}
Returns the aggregated dashboard payload.
Options
:history_seconds— window length, default3600(last hour). Common values:3600(1h),86400(24h),604800(7d).
Examples
{:ok, dashboard} = UnifiApi.Network.Dashboard.get(client, "default")
# Last week
{:ok, weekly} = UnifiApi.Network.Dashboard.get(client, "default",
history_seconds: 604_800)