Skip to main content
GET
/
dnszone
/
{id}
/
statistics
Get DNS Query Statistics
curl --request GET \
  --url https://api.bunny.net/dnszone/{id}/statistics \
  --header 'AccessKey: <api-key>'
{
  "TotalQueriesServed": 123,
  "QueriesServedChart": {},
  "NormalQueriesServedChart": {},
  "SmartQueriesServedChart": {},
  "QueriesByTypeChart": {}
}

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the DNS Zone for which the statistics will be returned

Query Parameters

dateFrom
string<date-time>

(Optional) The start date of the statistics. If no value is passed, the last 30 days will be returned

dateTo
string<date-time>

(Optional) The end date of the statistics. If no value is passed, the last 30 days will be returned

Response

Returns the statistics for the DNS Zone with the given ID

TotalQueriesServed
integer<int64>
required
QueriesServedChart
object
NormalQueriesServedChart
object
SmartQueriesServedChart
object
QueriesByTypeChart
object