curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/devices?from=-1d"
{
"data": [
{ "id": "8TD1G", "name": "Kitchen tablet", "queries": 614 },
{ "id": "__UNIDENTIFIED__", "queries": 82 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
Devices
Rank devices by the number of queries they sent.
GET
/
profiles
/
{profile}
/
analytics
/
devices
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/devices?from=-1d"
{
"data": [
{ "id": "8TD1G", "name": "Kitchen tablet", "queries": 614 },
{ "id": "__UNIDENTIFIED__", "queries": 82 }
],
"meta": { "pagination": { "cursor": null } }
}
Use a row’s
id as the device filter on other analytics requests. The optional name, model, and localIp describe the device as recorded on its latest query in the result. Queries without a device identifier are grouped under __UNIDENTIFIED__.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/devices?from=-1d"
{
"data": [
{ "id": "8TD1G", "name": "Kitchen tablet", "queries": 614 },
{ "id": "__UNIDENTIFIED__", "queries": 82 }
],
"meta": { "pagination": { "cursor": null } }
}