---
title: "Get DNS server statistics"
method: GET
path: "/stats"
tags: ["stats"]
---

# Get DNS server statistics

`GET /stats`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/stats`
- Auth: HTTP basic

## Response `200`

Returns statistics data

- Stats: Server statistics data
  - `time_units` 'hours' | 'days': Time units
  - `num_dns_queries` integer: Total number of DNS queries
  - `num_blocked_filtering` integer: Number of requests blocked by filtering rules
  - `num_replaced_safebrowsing` integer: Number of requests blocked by safebrowsing module
  - `num_replaced_safesearch` integer: Number of requests blocked by safesearch module
  - `num_replaced_parental` integer: Number of blocked adult websites
  - `avg_processing_time` number, float: Average time in milliseconds on processing a DNS
  - `top_queried_domains` TopArrayEntry[]
    - `domain_or_ip` integer
  - `top_clients` TopArrayEntry[]
    - `domain_or_ip` integer
  - `top_blocked_domains` TopArrayEntry[]
    - `domain_or_ip` integer
  - `dns_queries` integer[]
  - `blocked_filtering` integer[]
  - `replaced_safebrowsing` integer[]
  - `replaced_parental` integer[]

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
