Skip to main content

GET Top Live Videos

Overview


The following table contains important information about the GET method in regards to receiving the top live videos for the platform.

GET Top Live Videos
MethodGET
URL or Endpoint/api/v1/projects/projectId/dashboard/topLiveVideos
HeadersAuthorization
ParametersprojectId, startDate, endDate, items, intervalType
BodyNot Applicable

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

The description of the query parameters is as follows:

Parameter NameMandatoryTypeDescription
intervalTypeNointeger($int32)Determines the time interval for which the top videos are calculated.
Available values: 0, 1, 2, 3, 4, 5, 6, 7, 8
startDateNostring($date-time)The start date and time from which to begin collecting video data.
endDateNostring($date-time)The end date and time up to which to collect video data.
itemsNointeger($int32)The number of top videos to return.
info

If no intervalType value is provided, the endpoint defaults to returning the top live videos for the last 24 hours.

To manually specify startDate and endDate, the intervalType parameter must be set to 5. Otherwise, any provided dates will be ignored.

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": [
{
"id": "string",
"thumbnailUrl": "string",
"isLiveStreaming": true,
"canEmbed": true,
"title": "string",
"author": "string",
"insertDate": "2025-10-29T12:33:03.696Z",
"plays": 0
}
],
"resultInfo": "string",
"statusCode": 200
}

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

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false.
errorsarray[string]Indicates if there was an error.
messagesarray[string]Returns the response message from back-end.
resultarray[object]Returns the list of top videos along with their metadata and play counts.
idstringUnique identifier of the video.
thumbnailUrlstringURL of the video's thumbnail image.
isLiveStreamingboolIndicates whether the video is currently being live-streamed.
canEmbedboolSpecifies whether the video can be embedded on external sites.
titlestringThe title of the video.
authorstringThe name of the video's creator or publisher.
insertDatestring($date-time)The date and time when the video was uploaded or recorded.
playsinteger($int32)The total number of plays for the video within the specified interval.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 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 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed