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

# Query status

> Count queries by their filtering or resolution status.

Each row contains a `status` and its query count. Ordinary DNS resolution appears under `default`. The `allowed` status identifies an explicit allow decision, such as a match on the profile’s allowlist. The other values are `blocked`, `error`, `rewritten`, and `relayed`. To see which domains contributed to a count, pass that status to the [domains endpoint](https://docs.nextdns.io/api-reference/analytics/domains.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/status?from=-1d"
```

```json 200 theme={null}
{
  "data": [
    { "status": "default", "queries": 1842 },
    { "status": "blocked", "queries": 246 },
    { "status": "allowed", "queries": 37 }
  ],
  "meta": { "pagination": { "cursor": null } }
}
```


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