> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextdns.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Devices

> Rank devices by the number of queries they sent.

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__`.

**profile** `string` *required*

Profile ID.

See the [shared analytics filters and pagination](https://docs.nextdns.io/api-reference/analytics/overview#query-parameters).

```bash cURL theme={null}
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
  "https://api.nextdns.io/profiles/$PROFILE_ID/analytics/devices?from=-1d"
```

```json 200 theme={null}
{
  "data": [
    { "id": "8TD1G", "name": "Kitchen tablet", "queries": 614 },
    { "id": "__UNIDENTIFIED__", "queries": 82 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.