GET Video Stats
Overview
Returns the total view count for a specific video.
| GET Video Stats | |
|---|---|
| Method | GET |
| URL or Endpoint | /stats/video/videoId.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
{
"totalViews": 0
}
Information about the fields that appear when you receive the response are displayed in the table below.
| Field Name | Type | Description |
|---|---|---|
totalViews | integer | The 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