---
title: "Gets play logs for the account."
method: GET
path: "/adhawk/playlogs"
tags: ["AdHawk"]
---

# Gets play logs for the account.

`GET /adhawk/playlogs`

## Request

- Base URL: `https://api.reveldigital.com`
- URL: `https://api.reveldigital.com/adhawk/playlogs`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.reveldigital.com/connect/authorize`
    - Token URL: `https://id.reveldigital.com/connect/token` scopes: `webapi`
  - API key in header `X-RevelDigital-ApiKey`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/docs/adhawk/playlogs/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

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

## Response `200`

OK

- AdHawkPlayLog[]
  - `id` string, nullable: Unique identifier for this play log entry
  - `timestamp` string, date-time: Timestamp when the content was played
  - `device_id` string, nullable: The device ID where the content was played
  - `file_id` string, nullable: The media file ID that was played
  - `file_name` string, nullable: The name of the media file
  - `duration` integer, nullable: Duration of the play in seconds
  - `type` integer, nullable: Type of play (internal use)
  - `utc_offset` integer, nullable: UTC offset of the device at the time of play

---

[API](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api.md) - [All operations](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/revisions/39d5c8302822?raw)
