Skip to main content

GET Video Stats

Overview


Returns the total view count for a specific video.

GET Video Stats
MethodGET
URL or Endpoint/stats/video/videoId.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

{
"totalViews": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
totalViewsintegerThe total number of views for the video.

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