---
title: "Get DNS Query Statistics"
method: GET
path: "/dnszone/{id}/statistics"
tags: ["DNS Zone", "Statistics"]
---

# Get DNS Query Statistics

`GET /dnszone/{id}/statistics`

## Path parameters

- `id` integer, required

## Query parameters

- `dateFrom` string, date-time, nullable
- `dateTo` string, date-time, nullable

## Response `200`

Returns the statistics for the DNS Zone with the given ID

- DnsZoneStatisticsModel
  - `TotalQueriesServed` integer
  - `QueriesServedChart` object, nullable
  - `NormalQueriesServedChart` object, nullable
  - `SmartQueriesServedChart` object, nullable
  - `QueriesByTypeChart` object, nullable

## Other responses

- `401` — The request authorization failed
- `404` — The DNS Zone with the requested ID does not exist
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
