Skip to main content

GET Video Key Moments Card Values

Overview


The following table provides essential details about the GET method for retrieving key moments card data for a video.

GET Key Moments Card Data
MethodGET
URL or Endpoint/api/v2/projects/projectId/video/analytics/keyMoments/cards/videoId
HeadersAuthorization
ParametersintervalType, startDate, endDate, videoId, projectId
BodyNot Applicable

The following table describes the URL parameters for projectId and videoId:

projectId and videoId URL Parameters
URL Parameter NameprojectId, videoId
MandatoryYes
Typestring
DescriptionUnique identifiers for the project and video, respectively.

The table below provides details about each query parameter:

The table below provides details about each query parameter:

Parameter NameMandatoryTypeDescription
intervalTypeYesinteger($int32)The type of interval for the graph data. Available values are: 0, 1, 2, 3, 4, 5, 6, 7, 8.
startDateNostring($date-time)The start date for the graph data you wish to retrieve.
endDateNostring($date-time)The end date for the graph data you wish to retrieve.
videoIdYesstringThe unique identifier of the video.
projectIdYesstringThe unique identifier for the project.

Request Body​

This GET request does not contain a request body.

Response​

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": {
"averageViewDuration": 0,
"averageViewDurationPercentage": 0
},
"resultInfo": "string",
"statusCode": 0
}

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

Field NameTypeDescription
successbooleanIndicates whether the request was successful.
errorsarray[string]A list of errors that occurred during the request.
messagesarray[string]A list of messages returned by the backend.
resultobjectContains the key moments card data.
averageViewDurationinteger($int32)The average duration of views for the video.
averageViewDurationPercentageinteger($int32)The average percentage of the video viewed.
resultInfostringAdditional information about the result.
statusCodeinteger($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