> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nextdns.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DNS query types

> Count queries by the DNS record type requested.

Each row includes the numeric DNS record `type` and its `name`, such as `1` and `A`, or `28` and `AAAA`. For an unrecognized type, `name` contains the number as a string. Queries without a recorded type are excluded.

A query for an AAAA record can arrive over either IPv4 or IPv6. For the IP version of the connection, use [IP versions](https://docs.nextdns.io/api-reference/analytics/ip-versions.md).

**profile** `string` *required*

Profile ID.

See the [shared analytics filters and pagination](https://docs.nextdns.io/api-reference/analytics/overview#query-parameters).

```bash cURL theme={null}
curl -H "X-Api-Key: $NEXTDNS_API_KEY" \
  "https://api.nextdns.io/profiles/$PROFILE_ID/analytics/queryTypes?from=-1d"
```

```json 200 theme={null}
{
  "data": [
    { "type": 1, "name": "A", "queries": 685 },
    { "type": 28, "name": "AAAA", "queries": 432 },
    { "type": 65, "name": "HTTPS", "queries": 225 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.