GET Video Key Moments Graph
Overview
The following table provides essential details about the GET method for retrieving key moments graph data for a video.
| GET Key Moments Graph Data | |
|---|---|
| Method | GET |
| URL or Endpoint | /api/v2/projects/projectId/video/analytics/keyMoments/graph/videoId |
| Headers | Authorization |
| Parameters | intervalType, startDate, endDate, videoId, projectId |
| Body | Not Applicable |
The following table describes the URL parameters for projectId and videoId:
| projectId and videoId URL Parameters | |
|---|---|
| URL Parameter Name | projectId, videoId |
| Mandatory | Yes |
| Type | string |
| Description | Unique identifiers for the project and video, respectively. |
The table below provides details about each query parameter:
| Parameter Name | Mandatory | Type | Description |
|---|---|---|---|
| intervalType | Yes | integer($int32) | The type of interval for the graph data. Available values are: 0, 1, 2, 3, 4, 5, 6, 7, 8. |
| startDate | No | string($date-time) | The start date for the graph data you wish to retrieve. |
| endDate | No | string($date-time) | The end date for the graph data you wish to retrieve. |
| videoId | Yes | string | The unique identifier of the video. |
| projectId | Yes | string | The unique identifier for the project. |
Request Body
This GET request does not contain a request body.
Response
{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": [
{
"videoSeconds": 0,
"views": 0
}
],
"resultInfo": "string",
"statusCode": 0
}
Information about the fields that appear when you receive the response are displayed in the table below.
| Field Name | Type | Description |
|---|---|---|
success | boolean | Indicates whether the request was successful. |
errors | array[string] | A list of errors that occurred during the request. |
messages | array[string] | A list of messages returned by the backend. |
result | array[object] | An array containing the key moments graph data. |
videoSeconds | integer($int32) | The number of seconds into the video where the key moment occurred. |
views | integer($int32) | The number of views at the specified key moment. |
resultInfo | string | Additional information about the result. |
statusCode | integer($int32) | The HTTP status code of the response. |
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:
- 400: Bad Request
- 401: Unauthorized
- 403: Forbidden
- 404: Result Not Found
- 500: Internal Server Error
- 503: Backend Fetch Failed