list_clients
Retrieve all connected clients for a UniFi site, with filtering by wired/wireless type, pagination, and server-side filters. Returns complete list with total count.
Instructions
List connected clients for a site.
host: console name, ID, or composite ID (MAC:numericId format). site: site name or ID.
By default every page is drained and the complete client list is returned
as {data, totalCount}. offset/limit: fetch a single page manually (the
API's totalCount is surfaced so you can advance). client_type: convenience
shorthand — WIRELESS, WIRED, or ALL (default: all types) — translated into
the upstream type.eq(...) filter (the raw type query parameter is ignored
by the UniFi API, so this translation is what actually narrows the result).
filter: optional Network Integration API filter expression, forwarded
unchanged as the upstream filter query parameter for server-side filtering
(e.g. type.eq('WIRED'), macAddress.eq('aa:bb:cc:dd:ee:ff')); omitted
entirely when unset. client_type and an explicit filter are mutually
exclusive (the upstream grammar has no conjunction operator to compose them);
passing both raises an error rather than silently returning wrong results. A
capped drain returns the clients gathered so far with incomplete=true rather
than truncating silently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| site | Yes | ||
| limit | No | ||
| filter | No | ||
| offset | No | ||
| client_type | No |