---
title: "Get Zone Statistics"
method: GET
path: "/dns/v2/zones/{name}/statistics"
tags: ["Zones"]
---

# Get Zone Statistics

`GET /dns/v2/zones/{name}/statistics`

Statistics of DNS zone in common and by record types.

To get summary statistics for all zones use `all` instead of zone name in path.

Note: Consumption statistics is updated in near real-time as a standard practice.
However, the frequency of updates can vary, but they are typically available within a 30 minutes period.
Exceptions, such as maintenance periods, may delay data beyond 30 minutes until servers resume and backfill missing statistics.

## Path parameters

- `name` string, required

## Query parameters

- `from` integer
- `to` integer
- `record_type` string
- `granularity` string

## Response `200`

StatisticsZoneResponse

- StatisticsZoneResponse — StatisticsZoneResponse
  - `requests` object — Requests amount (values) for particular zone fractionated by time intervals (keys). Example of response: `{ "requests": { "1598608080000": 14716, "1598608140000": 51167, "1598608200000": 53432, "1598611020000": 51050, "1598611080000": 52611, "1598611140000": 46884 } }`
  - `total` integer — Total - sum of all values

## Other responses

- `400` — Error message response

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
