curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/ips?from=-1d"
{
"data": [
{ "ip": "192.0.2.4", "queries": 412 },
{ "ip": "2001:db8::8", "queries": 176 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
Client IP addresses
Rank recorded client IP addresses by query count.
GET
/
profiles
/
{profile}
/
analytics
/
ips
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/ips?from=-1d"
{
"data": [
{ "ip": "192.0.2.4", "queries": 412 },
{ "ip": "2001:db8::8", "queries": 176 }
],
"meta": { "pagination": { "cursor": null } }
}
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.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/ips?from=-1d"
{
"data": [
{ "ip": "192.0.2.4", "queries": 412 },
{ "ip": "2001:db8::8", "queries": 176 }
],
"meta": { "pagination": { "cursor": null } }
}