---
title: Get usage stats for a dashboard
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Dashboards
---

# Get usage stats for a dashboard{% #get-usage-stats-for-a-dashboard %}
Copy pageCopied
{% tab title="v2" %}
**Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
| Datadog site      | API endpoint                                                             |
| ----------------- | ------------------------------------------------------------------------ |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/dashboards/{dashboard_id}/usage |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/dashboards/{dashboard_id}/usage |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/dashboards/{dashboard_id}/usage      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/dashboards/{dashboard_id}/usage      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/dashboards/{dashboard_id}/usage  |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/dashboards/{dashboard_id}/usage     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/dashboards/{dashboard_id}/usage |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/dashboards/{dashboard_id}/usage |

### Overview

Get usage statistics for a single dashboard. The response includes view counts, the most recent view and edit times, widget counts, and the dashboard quality score. View-count fields depend on Real User Monitoring (RUM) and are `null` or `0` in orgs without RUM. This endpoint requires the `dashboards_read` permission.

OAuth apps require the `dashboards_read` authorization [scope](https://docs.datadoghq.com/api/latest/scopes.md#dashboards) to access this endpoint.



### Arguments

#### Path Parameters

| Name                           | Type   | Description              |
| ------------------------------ | ------ | ------------------------ |
| dashboard_id [*required*] | string | The ID of the dashboard. |

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response containing usage statistics for a single dashboard.

| Parent field         | Field                        | Type      | Description                                                                                                                                                                                                  |
| -------------------- | ---------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|                      | data [*required*]       | object    | A single dashboard usage record.                                                                                                                                                                             |
| data                 | attributes [*required*] | object    | Usage statistics for a dashboard. The `viewer` field and all view-count fields (`total_views`, `viewed_at`, `total_views_by_type`) are populated only when Real User Monitoring (RUM) is active for the org. |
| attributes           | author                       | object    | A user referenced from a dashboard usage record (author or viewer).                                                                                                                                          |
| author               | handle                       | string    | Datadog handle (login) of the user.                                                                                                                                                                          |
| author               | id                           | string    | The user ID.                                                                                                                                                                                                 |
| author               | is_disabled                  | boolean   | Whether the user account is disabled.                                                                                                                                                                        |
| author               | name                         | string    | Display name of the user.                                                                                                                                                                                    |
| attributes           | created_at                   | date-time | When the dashboard was created.                                                                                                                                                                              |
| attributes           | dashboard_quality_score      | double    | The dashboard quality score, or `null` when no score is available.                                                                                                                                           |
| attributes           | edited_at                    | date-time | When the dashboard was most recently edited.                                                                                                                                                                 |
| attributes           | org_id [*required*]     | int64     | The Datadog organization that owns the dashboard.                                                                                                                                                            |
| attributes           | teams                        | [string]  | Teams the dashboard is tagged with.                                                                                                                                                                          |
| attributes           | title                        | string    | The dashboard title.                                                                                                                                                                                         |
| attributes           | total_views                  | int64     | Total view count for the dashboard. Counts only views captured by Real User Monitoring (RUM); `0` in orgs without RUM.                                                                                       |
| attributes           | total_views_by_type          | object    | View counts keyed by view type (`in_app`, `embed`, `public`, `shared`, `api`, `unknown`). Counts only views captured by Real User Monitoring (RUM); empty in orgs without RUM.                               |
| additionalProperties | <any-key>                    | int64     | View count for that view type.                                                                                                                                                                               |
| attributes           | viewed_at                    | date-time | When the dashboard was most recently viewed. Populated only when Real User Monitoring (RUM) is active for the org; `null` in orgs without RUM.                                                               |
| attributes           | viewer                       | object    | A user referenced from a dashboard usage record (author or viewer).                                                                                                                                          |
| viewer               | handle                       | string    | Datadog handle (login) of the user.                                                                                                                                                                          |
| viewer               | id                           | string    | The user ID.                                                                                                                                                                                                 |
| viewer               | is_disabled                  | boolean   | Whether the user account is disabled.                                                                                                                                                                        |
| viewer               | name                         | string    | Display name of the user.                                                                                                                                                                                    |
| attributes           | widget_count                 | int64     | The total number of widgets on the dashboard.                                                                                                                                                                |
| attributes           | widget_count_by_type         | object    | Widget counts keyed by widget type. The map includes group widgets and widgets without requests.                                                                                                             |
| additionalProperties | <any-key>                    | int64     | Widget count for that widget type.                                                                                                                                                                           |
| data                 | id [*required*]         | string    | The dashboard ID.                                                                                                                                                                                            |
| data                 | type [*required*]       | enum      | The type of the resource. Always `dashboards-usages`. Allowed enum values: `dashboards-usages`                                                                                                               |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "author": {
        "handle": "jane.doe@example.com",
        "id": "00000000-0000-0000-0000-000000000000",
        "is_disabled": false,
        "name": "Jane Doe"
      },
      "created_at": "2026-01-15T09:30:00.000Z",
      "dashboard_quality_score": 0.85,
      "edited_at": "2026-04-20T11:05:00.000Z",
      "org_id": 100,
      "teams": [],
      "title": "My production overview",
      "total_views": 42,
      "total_views_by_type": {
        "<any-key>": "integer"
      },
      "viewed_at": "2026-05-01T14:22:10.000Z",
      "viewer": {
        "handle": "jane.doe@example.com",
        "id": "00000000-0000-0000-0000-000000000000",
        "is_disabled": false,
        "name": "Jane Doe"
      },
      "widget_count": 12,
      "widget_count_by_type": {
        "<any-key>": "integer"
      }
    },
    "id": "q5j-nti-fv6",
    "type": "dashboards-usages"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="403" %}
Forbidden
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

```json
{
  "errors": [
    "Bad Request"
  ]
}
```

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export dashboard_id="q5j-nti-fv6" \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/dashboards/${dashboard_id}/usage" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" 
                
{% /tab %}
