Skip to main content

GET Video Assets by Video Id

Overview


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

GET Video Assets
MethodGET
URL or Endpoint/api/projects/projectId/videos/assets/videoId
HeadersAuthorization
ParametersvideoId, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project
videoIdYesstringUnique id of the video

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"filmStrip": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip0.jpg",
"filmStripVtt": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/filmstrip.vtt",
"thumbnail": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/retina.jpg",
"customThumbnail": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/thumbnails/retina.jpg",

//If video contains chapters, the URL of the VTT file will apear like this:
"chaptersVtt": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/chapter.vtt",

"thumbnailSecond": null,
"originalFile": "{originalFile}",
"playBackUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/master_file.m3u8",
"streamResponse": {
"keyId": "",
"contentId": "",
"progress": 100,
"progressTillReadiness": 100,
"status": "Complete",
"encodingProcessRemainingTime": 0,
"insertDate": "2024-12-25T13:05:34.9467128",
"encodingProcessFinishTime": "2024-06-25T12:30:31.298662Z",
"streams": [
{
"assetType": "Video",
"streamType": "hls",
"root": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/master_file.m3u8",
"qualityTypes": [
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "1440p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/1440p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 25760572,
"width": 1440,
"height": 2560,
"bitrate": 6852288,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"

},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "1080p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/1080p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 16206631,
"width": 1080,
"height": 1920,
"bitrate": 4307398,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "720p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/720p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 6285510,
"width": 720,
"height": 1280,
"bitrate": 1664702,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "480p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/480p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 3146829,
"width": 480,
"height": 854,
"bitrate": 828649,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "360p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/360p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 1583953,
"width": 360,
"height": 640,
"bitrate": 412345,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "240p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/240p/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 721676,
"width": 240,
"height": 428,
"bitrate": 182660,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
}
]
},
{
"assetType": "Video",
"streamType": "mp4",
"root": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/master_file.gjp4",
"qualityTypes": [
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "1440p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/1440p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 25554052,
"width": 1440,
"height": 2560,
"bitrate": 6797277,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "240p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/240p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 721534,
"width": 240,
"height": 428,
"bitrate": 182622,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "480p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/480p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 3166938,
"width": 480,
"height": 854,
"bitrate": 834006,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "360p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/360p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 1590328,
"width": 360,
"height": 640,
"bitrate": 414043,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "720p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/720p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 6310660,
"width": 720,
"height": 1280,
"bitrate": 1671401,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "1080p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/mp4/1080p.mp4",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 17154184,
"width": 1080,
"height": 1920,
"bitrate": 4559798,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
}
]
},
{
"assetType": "Video",
"streamType": "transcription",
"root": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/transcription/master_file.gjp4",
"qualityTypes": [
{
"id": "{videoId}",
"mediaType": "Video",
"qualityType": "320kbps_audio",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/transcription/320kbps_audio.mp3",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 481681,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "mp3",
"audioBitrate": 128000,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
}
]
},
{
"assetType": "Audio",
"streamType": "hls",
"root": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/720p/audio/index.m3u8",
"qualityTypes": [
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "1440p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/1440p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 25760572,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "1080p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/1080p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 16206631,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "720p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/720p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 6285510,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "480p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/480p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 3146829,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "360p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/360p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 1583953,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
},
{
"id": "{videoId}",
"mediaType": "Audio",
"qualityType": "240p",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/encode/{videoId}/hls/240p/audio/index.m3u8",
"statusDescription": "Complete",
"status": "Complete",
"duration": 30.036667,
"size": 721676,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "aac",
"audioBitrate": 2273,
"audioSampleRate": 48000,
"progress": 100,
"startDateTime": "2025-02-14T13:02:12.523Z",
"endDateTime": "2025-02-14T13:02:12.523Z"
}
]
}
]
}
},
"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
filmstripstringURL of the filmstrip image.
filmstripVttstringURL of the VTT file for the filmstrip
thumbnailstringURL of the default thumbnail image of the video
customThumbnailstringURL of a custom thumbnail image
chaptersVttstringURL of the VTT file for chapters
thumbnailSecondstringAnother thumbnail image URL
originalFilestringA unique identifier for the original video file
playbackUrlstringURL for video playback.
streamResponsearray[Object]Returns the stream response as an array of objects.
keyIdstringId of the key
contentIdstringId of the content
progressinteger($int32)Overall progress of the encoding process
progressTillReadinessinteger($int32)Progress until the video is ready
statusstringCurrent status of the encoding process
encodingProcessRemainingTimeinteger($int32)Time remaining for encoding to complete
insertDateDateDate and time when the video was inserted
EncodingProcessFinishTimeDateTimestamp of when the encoding finished
streamsarray[Object]Returns the streams as an array of objects.
assetTypestringType of media
streamTypestringFormat of the stream
rootstringThe URL of the root.
qualityTypesarray[Object]Returns the quality types as an array of quality types.
idstringUnique identifier for this particular quality
mediaTypestringType of the media
qualityTypestringDescribes the quality of the stream
streamUrlstringURL to access specific quality stream
statusDescriptionstringDescription of the current status
statusstringStatus of the quality stream
durationdoubleDuration of the stream in seconds
sizeinteger($int32)Size of the stream file in bytes
widthinteger($int32)Width of the video in pixels
heightinteger($int32)Height of the video in pixels
bitrateinteger($int32)Bitrate of the stream in bits per seconds
audioCodecstringCodec used for the audio stream
audioBitrateinteger($int32)Bitrate of the audio stream in Hz.
audioSampleRateinteger($int32)Sample rate of the audio stream in Hz
progressinteger($int32)Progress of encoding for quality type
startDateTimeDate-TimeThe UTC timestamp when the process begins.
endDateTimeDate-TimeThe UTC timestamp when the process ends.
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