media
Get watch data
Returns play count, play duration, and users who have watched the media.
Requires the ADMIN permission.
get/media/{mediaId}/watch_data
Request
- Base URL: http://localhost:5055/api/v1
- URL: http://localhost:5055/api/v1/media/{mediaId}/watch_data
- Auth: one of:
- API key in cookie connect.sid
- API key in header X-Api-Key
Path parameters
mediaIdstring required
Media ID
Response
Users
Example response
{
"data": {
"users": [
{
"id": 1,
"email": "hey@itsme.com",
"userType": 1,
"createdAt": "2020-09-02T05:02:23.000Z",
"updatedAt": "2020-09-02T05:02:23.000Z",
"requestCount": 5
}
]
},
"data4k": {
"users": [
{
"id": 1,
"email": "hey@itsme.com",
"userType": 1,
"createdAt": "2020-09-02T05:02:23.000Z",
"updatedAt": "2020-09-02T05:02:23.000Z",
"requestCount": 5
}
]
}
}Changes
No recorded changes to this operation across all 21 revisions of this API.