---
title: "Gets device play statistics aggregated by device."
method: GET
path: "/adhawk/deviceplaystats"
tags: ["AdHawk"]
---

# Gets device play statistics aggregated by device.

`GET /adhawk/deviceplaystats`

## Query parameters

- `startDate` string, date-time
- `endDate` string, date-time
- `deviceId` string[]
- `fileId` string[]
- `limit` integer

## Response `200`

OK

- AdHawkDevicePlayStats[]
  - `device_id` string, nullable — The device ID
  - `device_name` string, nullable — The device name
  - `total_plays` integer — Total number of media files played on this device
  - `total_duration` integer — Total duration of all plays in seconds
  - `avg_duration` number, double, nullable — Average play duration in seconds
  - `file_count` integer — Number of unique media files played on this device
  - `first_play` string, date-time, nullable — First play timestamp for the period
  - `last_play` string, date-time, nullable — Last play timestamp for the period

---

[API](https://skmtc.net/reveldigital/apis/revel-digital-rest-api.md) · [All operations](https://skmtc.net/reveldigital/apis/revel-digital-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reveldigital/revel-digital-rest-api/versions/f23a94aea621/schema)
