curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/queryTypes?from=-1d"
{
"data": [
{ "type": 1, "name": "A", "queries": 685 },
{ "type": 28, "name": "AAAA", "queries": 432 },
{ "type": 65, "name": "HTTPS", "queries": 225 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
DNS query types
Count queries by the DNS record type requested.
GET
/
profiles
/
{profile}
/
analytics
/
queryTypes
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/queryTypes?from=-1d"
{
"data": [
{ "type": 1, "name": "A", "queries": 685 },
{ "type": 28, "name": "AAAA", "queries": 432 },
{ "type": 65, "name": "HTTPS", "queries": 225 }
],
"meta": { "pagination": { "cursor": null } }
}
Each row includes the numeric DNS record
type and its name, such as 1 and A, or 28 and AAAA. For an unrecognized type, name contains the number as a string. Queries without a recorded type are excluded.
A query for an AAAA record can arrive over either IPv4 or IPv6. For the IP version of the connection, use IP versions.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/queryTypes?from=-1d"
{
"data": [
{ "type": 1, "name": "A", "queries": 685 },
{ "type": 28, "name": "AAAA", "queries": 432 },
{ "type": 65, "name": "HTTPS", "queries": 225 }
],
"meta": { "pagination": { "cursor": null } }
}