Skip to main content

POST Video Search

Overview


The following table contains important information about the POST method for managing the process of retrieving videos with pagination.

POST Video
MethodPOST
URL or Endpoint/api​/projects​/projectId​/videos/search
ParametersprojectId
BodyCheck request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.

Request Body

{
"page": 0,
"searchAfter": [
null
],
"folderId": 0,
"folderView": true,
"onlyReadyVideos": true,
"onlyPublishedVideos": true,
"key": "string",
"value": "string",
"author": "string",
"videoPropertyType": 0,
"videoPropertyValue": 0,
"isLive": true,
"parentVideoId": "string",
"visibilityOptionIds": [
0
],
"search": "string",
"order": "string",
"insertDate": "2026-02-16T10:23:42.729Z",
"take": 0
}

Information about the fields that appear when you type in the request body are displayed in the table below.

Parameter NameMandatoryTypeDescription
pageNointegerThe page number to retrieve in a paginated result set. Typically starts from 0.
searchAfterNoarrayAn array of values used for cursor-based pagination. Use the last value from the previous page for the next page.
folderIdNointegerID of the folder to filter videos by. Use 0 or omit for no folder filtering.
folderViewNobooleanIndicates whether the response should be filtered or formatted according to folder view.
onlyReadyVideosNobooleanFilter to include only videos that are ready for playback or processing.
onlyPublishedVideosNobooleanFilter to include only videos that are published and visible to users.
keyNostringCustom key used for filtering video properties.
valueNostringValue corresponding to the key used for property filtering.
authorNostringFilter videos by the author.
videoPropertyTypeNointegerNumeric identifier representing the type of video property to filter by.
videoPropertyValueNointegerNumeric value associated with videoPropertyType for filtering.
isLiveNobooleanFilter videos to include only live videos or non-live videos.
parentVideoIdNostringID of a parent video to filter for child or related videos.
visibilityOptionIdsNoarray[int]List of visibility option IDs to filter videos by their visibility settings.
searchNostringSearch term to filter videos by.
orderNostringSorting order for the results.
insertDateNoDateFilter videos by their insertion date.
takeNointegerThe number of videos to retrieve per request.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 65,
"pageSize": 10,
"totalCount": 644,
"searchAfter": [
1768837792185,
8284
],
"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
currentPageintegerNumber of the current page
totalPagesintegerNumber of the total page
pageSizeintegerThe size of the page
totalCountintegerNumber of the total records
searchAfterarrayAn array of values used for cursor-based pagination. Use the last value from the previous page for the next page.
itemsarray[Object]Array of records, each containing details about the video
titlestringTitle of the video
mediaIdstringPublic Id of the video
authorstringAuthor of the video
videoAuthorstringAuthor of the video content
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)
progressintegerThe current progress of the video processing (as percentage)
progressTillReadinessintegerThe progress towards readiness (as percentage)
estimatedFinishTimestringThe estimated finish time for the video processing
showEncodingProgressboolIndicates whether to show encoding progress
visibilityOptionIdintegerVisibility option ID (e.g., 1 for public visibility)
visibilityOptionstringVisibility option (e.g., "Public")
playbackUrlstringURL for video playback
errorIdintegerIdentifier 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
statusCodeintegerReturns 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