> ## 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.

# Blocking reasons

> Count blocked queries by the rule or list that matched them.

Each row includes a reason `id`, its display `name`, and the number of blocked queries it matched. One query can match several reasons, so adding the counts can exceed the number of blocked queries.

To see which blocked domains contributed to a row, pass its `id` as `reason` and include `status=blocked` on the [domains endpoint](https://docs.nextdns.io/api-reference/analytics/domains.md). Use `locale` to request display names in another language.

**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/reasons?from=-7d"
```

```json 200 theme={null}
{
  "data": [
    {
      "id": "blocklist:nextdns-recommended",
      "name": "NextDNS Ads & Trackers Blocklist",
      "queries": 186
    },
    { "id": "denylist", "name": "Denylist", "queries": 34 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


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