analytics
Count a NextDNS profile's DNS queries over a chosen time span and retrieve paginated reports for status, top domains, block reasons, devices, IPs, or protocols. Changes nothing.
Instructions
Count a profile's DNS queries over a time span, one report at a time: allowed or blocked, top domains, block reasons, devices, IPs, protocols and more. Use chart for the same numbers as a picture, logs for single queries and watch_logs for queries happening now. Changes nothing. Returns one line per row with its count (counts over time with series), and a cursor line when there are more rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | domains report only: true groups subdomains under their root domain. | |
| limit | No | How many rows, 1 to 500. | |
| cursor | No | The cursor from the last answer, to get the next page. | |
| device | No | Only this device: a device ID from the devices report, or __UNIDENTIFIED__. | |
| report | No | Which report: status, domains, reasons, ips, devices, protocols, queryTypes, ipVersions, dnssec, encryption or destinations. | status |
| series | No | true: counts over time, split by interval and timezone. | |
| status | No | domains report only: just blocked, allowed or default queries. | |
| profile | No | The profile's ID or name. Leave empty for the only profile, or the default one. | |
| to_date | No | Where to stop, not included: an ISO date, Unix time or relative like -1h. Empty means now. | |
| interval | No | With series: the step between points, like 1h, 1d or 3600 (seconds). | |
| timezone | No | With series: the time zone for the steps, like Europe/Lisbon. | |
| from_date | No | Where to start, included: an ISO date, Unix time or relative like -6h, -7d or -1M. | -7d |
| destination | No | destinations report only: countries or gafam. | countries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |