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

# IP versions

> Count queries from IPv4 and IPv6 client addresses.

Rows contain `version` (`4` or `6`) and a query count. Only queries with a recorded client IP address contribute to this breakdown.

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

```json 200 theme={null}
{
  "data": [
    { "version": 6, "queries": 414 },
    { "version": 4, "queries": 128 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


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