curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/status?from=-1d"
{
"data": [
{ "status": "default", "queries": 1842 },
{ "status": "blocked", "queries": 246 },
{ "status": "allowed", "queries": 37 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
Query status
Count queries by their filtering or resolution status.
GET
/
profiles
/
{profile}
/
analytics
/
status
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/status?from=-1d"
{
"data": [
{ "status": "default", "queries": 1842 },
{ "status": "blocked", "queries": 246 },
{ "status": "allowed", "queries": 37 }
],
"meta": { "pagination": { "cursor": null } }
}
Each row contains a
status and its query count. Ordinary DNS resolution appears under default. The allowed status identifies an explicit allow decision, such as a match on the profile’s allowlist. The other values are blocked, error, rewritten, and relayed. To see which domains contributed to a count, pass that status to the domains endpoint.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/status?from=-1d"
{
"data": [
{ "status": "default", "queries": 1842 },
{ "status": "blocked", "queries": 246 },
{ "status": "allowed", "queries": 37 }
],
"meta": { "pagination": { "cursor": null } }
}