curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/protocols?from=-1d"
{
"data": [
{ "protocol": "DNS-over-HTTPS", "queries": 1782 },
{ "protocol": "DNS-over-TLS", "queries": 549 },
{ "protocol": "UDP", "queries": 87 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
DNS protocols
Count queries by the protocol used to reach NextDNS.
GET
/
profiles
/
{profile}
/
analytics
/
protocols
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/protocols?from=-1d"
{
"data": [
{ "protocol": "DNS-over-HTTPS", "queries": 1782 },
{ "protocol": "DNS-over-TLS", "queries": 549 },
{ "protocol": "UDP", "queries": 87 }
],
"meta": { "pagination": { "cursor": null } }
}
The
protocol field identifies the client’s DNS transport. Values include UDP, TCP, DNS-over-HTTPS, DNS-over-TLS, DNS-over-HTTP/3, and DNS-over-QUIC. For a single encrypted versus unencrypted breakdown, use encryption.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/protocols?from=-1d"
{
"data": [
{ "protocol": "DNS-over-HTTPS", "queries": 1782 },
{ "protocol": "DNS-over-TLS", "queries": 549 },
{ "protocol": "UDP", "queries": 87 }
],
"meta": { "pagination": { "cursor": null } }
}