---
title: "Get all aggregated DNS traffic"
method: GET
path: "/api/v2/network/dns/aggregate"
tags: ["Cloud Network Monitoring"]
---

# Get all aggregated DNS traffic

`GET /api/v2/network/dns/aggregate`

Get all aggregated DNS traffic.

## Query parameters

- `from` integer
- `to` integer
- `group_by` string
- `tags` string
- `query` string
- `limit` integer

## Response `200`

OK

- SingleAggregatedDnsResponseArray — List of aggregated DNS flows.
  - `data` SingleAggregatedDnsResponseData[] — Array of aggregated DNS objects.
    - `attributes` SingleAggregatedDnsResponseDataAttributes — Attributes for an aggregated DNS flow.
      - `group_bys` SingleAggregatedDnsResponseDataAttributesGroupByItems[] — The key, value pairs for each group by.
        - `key` string — The group by key.
        - `value` string — The group by value.
      - `metrics` SingleAggregatedDnsResponseDataAttributesMetricsItems[] — Metrics associated with an aggregated DNS flow.
        - `key` 'dns_total_requests' | 'dns_failures' | 'dns_successful_responses' | 'dns_failed_responses' | 'dns_timeouts' | 'dns_responses.nxdomain' | 'dns_responses.servfail' | 'dns_responses.other' | 'dns_success_latency_percentile' | 'dns_failure_latency_percentile' — The metric key for DNS metrics.
        - `value` integer — The metric value.
    - `id` string — A unique identifier for the aggregated DNS traffic based on the group by values.
    - `type` 'aggregated_dns' — Aggregated DNS resource type.

## Other responses

- `400` — Bad Request
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
