---
title: "Get Dashboard Analytics"
method: GET
path: "/dashboards/{dashboard_id}/analytics"
tags: ["Dashboard"]
---

# Get Dashboard Analytics

`GET /dashboards/{dashboard_id}/analytics`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/{dashboard_id}/analytics`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Retrieve aggregated analytics data for a dashboard.

## Path parameters

- `dashboard_id` integer, required

## Response `200`

Successfully Retrieved

- DashboardAnalyticsResponse
  - `total_views` integer, required: Total number of views
  - `average_time_spent_seconds` number, nullable: Average session duration in seconds
  - `viewed_by` string, required: Human-readable string showing viewer names and anonymous count
  - `current_concurrent_viewers` integer, required: Number of active viewers right now

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
