GET Video Live Viewers
Overview
Returns the number of live viewers for a specific video in the last 30 seconds.
| GET Video Live Viewers | |
|---|---|
| Method | GET |
| URL or Endpoint | /stats/video/videoId/live-viewers.json |
| Headers | Not Applicable |
| Parameters | videoId |
| Body | Not Applicable |
The description of the URL parameters is as follows:
| URL Parameter Name | Mandatory | Type | Description |
|---|---|---|---|
videoId | Yes | string | Unique ID of the video. |
Request Body
The request does not contain a request body.
Response
{
"success": true,
"errors": [],
"messages": [],
"result": {
"last30SecondsLiveViewers": "{last30SecondsLiveViewers}"
},
"resultInfo": null,
"statusCode": 200
}
Information about the fields that appear when you receive the response are displayed in the table below.
Top-Level Properties
| Field Name | Type | Description |
|---|---|---|
success | boolean | Indicates whether the response is successful. |
errors | array[string] | Indicates if there was an error. |
messages | array[string] | Returns the response message from the server. |
result | object | Returns the response object. |
last30SecondsLiveViewers | string | The number of live viewers in the last 30 seconds. |
resultInfo | string | Returns extra information about the result. |
statusCode | integer | Returns the HTTP Status Code. |
If the action is successful, the service sends back an HTTP 200 response.
Errors
For information about the errors that are common to all actions, see Common Errors:
HTTP Status Code 400: Bad Request
HTTP Status Code 500: Internal Server Error