---
title: "Analytics about DNS queries"
method: GET
path: "/{account}/dns_analytics"
tags: ["billing", "zones"]
---

# Analytics about DNS queries

`GET /{account}/dns_analytics`

Queries and returns DNS Analytics data available for the provided query parameters. This API is currently in Public Beta. During the Public Beta period, changes may occur at any time.

## Path parameters

- `account` integer, required

## Query parameters

- `start_date` string, date — A date value formatted as ISO 8601.
- `end_date` string, date — A date value formatted as ISO 8601.
- `groupings` 'date' | 'volume' | 'zone_name'
- `sort` string
- `page` integer
- `per_page` integer

## Response `200`

Successfully retrieved DNS analytics data.

- object
  - `data` object, required
    - `rows` union[], required
      - union
        - integer
        - string
        - string, date — A date value formatted as ISO 8601.
    - `headers` string[], required
  - `query` object, required
    - `account_id` integer, required
    - `start_date` string, date, nullable, required — A nullable date-time value. The value can be null, when present the value is formatted according to the ISO 8601 specification.
    - `end_date` string, date, nullable, required — A nullable date-time value. The value can be null, when present the value is formatted according to the ISO 8601 specification.
    - `sort` string, required — Sorting applied to the returned data.
    - `groupings` string, nullable, required — Grouping applied to the returned data.
    - `page` integer, required — The returned page number.
    - `per_page` integer, required — The page size used to generate the data.
  - `pagination` Pagination, required
    - `current_page` integer, required
    - `per_page` integer, required
    - `total_entries` integer, required
    - `total_pages` integer, required

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/versions/270bb4f6f532/schema)
