Skip to main content

GET Videos by Public Id

Overview


The following table contains information about the GET method for managing the process of retrieving a specific video by id.

GET Videos by PublicId
MethodGET
URL or Endpoint/api/projects/projectId/videos/id
HeadersAuthorization
Parametersid, projectId
BodyNot Applicable

The description of the URL parameter is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project
idYesstringUnique id of the encoded video

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{videoId}",
"id": "{videoId}",
"name": "{name}",
"title": "{title}",
"description": "",
"thumbnailUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/retina.jpg",
"filmstripUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip0.jpg",
"filmstripVttUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip.vtt",
"publishDate": "2024-05-21T10:01:11.833481",
"publishEndDate": null,
"shareUrl": "string",
"liveCutStartDate": null,
"liveCutEndDate": null,
"insertDate": "2024-05-21T08:01:05.4141661",
"publishStatusId": 2,
"publishStatusName": "Ready",
"duration": 150,
"userName": null,
"categoryId": null,
"publicAdScheduleId": null,
"restrictionId": null,
"skipIntroState": false,
"skipIntroFrom": null,
"skipIntroTo": null,
"geoBlockingRuleId": null,
"customOverlayState": false,
"chapterState": true,
"canEmbed": true,
"canPreview": true,
"source": "",
"author": "",
"isLive": "False",
"visibilityOptionId": 1,
"visibilityOption": "Public",
"videoLockState": false,
"lockAfter": 0,
"password": "1234",
"passwordProtectedTitle": "",
"passwordProtectedDescription": "",
"tagNames": [],
"customParameters": [],
"flagIds": null,
"geoBlockingRule": null,
"customOverlays": [
{
"caption": "test",
"secondsFrom": 1,
"secondsTo": 63,
"position": 2
}
],
"chapters": [
{
"title": "Introduction",
"time": 50
},
{
"title": "Chapter 2",
"time": 90
},
{
"title": "End",
"time": 150
}
]
},
"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
publicIdstringThe unique Id of the encoded video
idinteger($int32)Unique id of video
namestringTitle of the video
titlestringTitle of the video
descriptionstringDescription of the video
thumbnailUrlstringURL of the video's thumbnail image
filmstripUrlstringURL of the filmstrip image sequence
filmstripVttUrlstringURL of the WebVTT file for the filmstrip
publishDateDateDate and time when the video was published
publishEndDateDateDate and time when video will not be available
shareUrlStringA share URL redirects viewers to a custom destination when they share a video; if not provided, the player shares the video's embed location
liveCutStartDateDateStart date and time for a live cut
liveCutStartDateDateEnd date and time for a live cut
insertDateDateDate and time when the video was inserted
publishStatusIdinteger($int32)Id of the video's publish status
publishStatusNamestringThe name of the publish status
durationstringDuration of the video in seconds
userNamestringThe name of the user who uploaded the video
categoryIdinteger($int32)Id of the category
publicAdScheduleIdstringThe public Id of the ad schedule
restrictionIdinteger($int32)Id of the restriction
skipIntroStatebooleanThe state of the skip intro option
skipIntroFrominteger($int32)The start time in seconds for skipping the intro
skipIntroTointeger($int32)The end time in seconds for skipping the intro
geoBlockingRuleIdinteger($int32)The Id of the geo blocking rule
customOverlayStateboolIndicates whether custom overlays are enabled
chapterStateboolIndicates whether chapters are enabled
canEmbedboolIndicates whether the video can be embedded
canPreviewboolIndicates whether the video can be viewed
sourcestringThe source of the video
authorstringThe author of the video
isLivestringIndicates whether the video is live
visibilityOptionIdinteger($int32)The id of visibility option
visibilityOptionstringThe name of the visibility option
videoLockStateboolIndicates whether the video is locked
lockAfterinteger($int32)The number of seconds after which the video locks
passwordstringThe password for accessing the video
passwordProtectedTitlestringCustom player title for password protected videos
passwordProtectedDescriptionstringCustom player description for password protected videos
tagNamesarray[string]An array of video tags
customParametersarray[Object]An array of custom parameters
flagIdsarray[integer($int32)]An array of flag Ids
geoblockingRulestringThe geoblocking rule applied to the video
customOverlaysarray[Object]Return an array of custom overlays
captionstringThe text of the custom overlay
secondsFrominteger($int32)The start time in seconds
secondsTointeger($int32)The end time in seconds
positoninteger($int32)The the position of custom overlay
chaptersarray[Object]Returns an array of chapters
titlestringThe title of the chapter
timeinteger($int32)The end time for the specific chapter
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