curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/encryption?from=-1d"
{
"data": [
{ "encrypted": true, "queries": 934 },
{ "encrypted": false, "queries": 35 }
],
"meta": { "pagination": { "cursor": null } }
}
Analytics
Encryption
Count queries sent over encrypted and unencrypted DNS transports.
GET
/
profiles
/
{profile}
/
analytics
/
encryption
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/encryption?from=-1d"
{
"data": [
{ "encrypted": true, "queries": 934 },
{ "encrypted": false, "queries": 35 }
],
"meta": { "pagination": { "cursor": null } }
}
The
encrypted field is true for DNS over HTTPS, TLS, HTTP/3, or QUIC. Plain DNS over UDP or TCP has encrypted: false. For counts by individual transport, use DNS protocols.
See the shared analytics filters and pagination.
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
"https://api.nextdns.io/profiles/$PROFILE_ID/analytics/encryption?from=-1d"
{
"data": [
{ "encrypted": true, "queries": 934 },
{ "encrypted": false, "queries": 35 }
],
"meta": { "pagination": { "cursor": null } }
}