> ## 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.

# Client IP addresses

> Rank recorded client IP addresses by query count.

Only queries with a recorded client `ip` contribute to this ranking. When available, `network` includes the `cellular` and `vpn` indicators and may include the ISP (`isp`) and autonomous system number (`asn`). The optional `geo` object can include latitude, longitude, city, country, and `countryCode`.

**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/ips?from=-1d"
```

```json 200 theme={null}
{
  "data": [
    { "ip": "192.0.2.4", "queries": 412 },
    { "ip": "2001:db8::8", "queries": 176 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


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