Skip to main content

GET Videos

Overview


The following table contains information about the GET method for managing the process that returns all the videos.

GET Videos
MethodGET
URL or Endpoint/api/projects/projectId/videos
HeadersAuthorization
ParametersprojectId, search, order, insertedDate, page, take, folderId, folderview, onlyReadyVideos, onlyPublishedVideos, key, value, author, videoPropertyType, videoPropertyValue, isLive, parentVideoId, visibilityOptionIds
BodyNot Applicable

The description of the URL parameter is as follows:

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

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
folderIdNostringFolder ID where the video is stored (if applicable)
folderviewNostringView type of the folder
onlyReadyVideosNoboolFilter to include only ready videos
onlyPublishedVideosNoboolFilter to include only published videos
keyNostringKey for custom parameters
valueNostringValue for custom parameters
authorNostringAuthor of the video content
videoPropertyTypeNostringType of video property
videoPropertyValueNostringValue of video property
isLiveNoboolIndicates if the video is live
parentVideoIdNostringID of the parent video (if applicable)
visibilityOptionIdsNoarray[integer]List of visibility option IDs
searchNostringText that is used for filtering
orderNostringOrder by date or not
insertedDateNoDateDate when the video was inserted
pageNointeger($int32)The specific page to take
takeNointeger($int32)Number of videos to take

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 65,
"pageSize": 10,
"totalCount": 644,
"items": [
{
"title": "{title}",
"mediaId": "{videoId}",
"author": "{author}",
"videoAuthor": "{videoAuthor}",
"deletedBy": "{deletedBy}",
"updateDate": "{updateDate}",
"thumbnailUrl": "{thumbnailUrl}",
"status": "{status}",
"duration": 0.0,
"publishDate": "2022-03-24T10:35:11.964Z",
"canEmbed": false,
"canPreview": false,
"highlight": {},
"folderId": null,
"progress": 0,
"progressTillReadiness": 0,
"estimatedFinishTime": "{estimatedFinishTime}",
"showEncodingProgress": false,
"visibilityOptionId": 0,
"visibilityOption": 0,
"playbackUrl": "{playbackUrl}",
"errorId": null,
"error": null,
"tags": [],
"customParameters": [
{
"id": 0,
"key": "{key}",
"value": "{value}"
}
],
"videoProperties": null
}
]
},
"resultInfo": null,
"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 response object
currentPageinteger($int32)Number of the current page
totalPagesinteger($int32)Number of the total page
pageSizeinteger($int32)The size of the page
totalCountinteger($int32)Number of the total records
itemsarray[Object]Array of records, each containing details about the video
titlestringTitle of the video
mediaIdstringPublic Id of the video
authorstringAuthor of the video content
videoAuthorstringAuthor of the video (if different from the content author)
deletedBystringEntity that deleted the video
updateDateDateThe last update date of the video
thumbnailUrlstringURL of the thumbnail image
statusstringStatus of the video (e.g., "Ready")
durationfloatDuration of the video in seconds
publishDateDateThe date when the video was published
canEmbedboolIndicates whether the video can be embedded
canPreviewboolIndicates whether the video can be previewed
highlightobjectContains highlight information (if any)
folderIdstringFolder ID where the video is stored (if applicable)
progressinteger($int32)The current progress of the video processing (as percentage)
progressTillReadinessinteger($int32)The progress towards readiness (as percentage)
estimatedFinishTimestringThe estimated finish time for the video processing
showEncodingProgressboolIndicates whether to show encoding progress
visibilityOptionIdinteger($int32)Visibility option ID (e.g., 1 for public visibility)
visibilityOptionstringVisibility option (e.g., "Public")
playbackUrlstringURL for video playback
errorIdinteger($int32)Identifier for any error that occurred (if applicable)
errorstringError message (if any)
tagsarray[string]Tags associated with the video
customParametersarray[Object]Custom parameters related to the video, such as metadata
videoPropertiesobjectAdditional properties related to the video (if applicable)
resultInfostringExtra information about the result
statusCodeinteger($int32)Returns the HTTP Status Code
info

For more information about the possible errorId and error values, see Error Codes.

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