Skip to main content

GET Video Live Viewers

Overview


Returns the number of live viewers for a specific video in the last 30 seconds.

GET Video Live Viewers
MethodGET
URL or Endpoint/stats/video/videoId/live-viewers.json
HeadersNot Applicable
ParametersvideoId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
videoIdYesstringUnique 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 NameTypeDescription
successbooleanIndicates whether the response is successful.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from the server.
resultobjectReturns the response object.
last30SecondsLiveViewersstringThe number of live viewers in the last 30 seconds.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns 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