Skip to main content

GET Encoded Video by ID

Overview


The following table contains important information about the GET method in regards to the encode process.

POST Method
MethodGET
URL or Endpoint/api/projects/projectId/encodes/id
HeadersAuthorization
ParametersprojectId, id
BodyNot applicable

The description of the URL parameters is as follows:

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

Request Body

The request does not have a request body

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"name": "name",
"callBackUrl": "string",
"PublishStatus": "Ready",
"videoFile": {
"downloadUrl": null,
"uploadPath": null,
"progress": null,
"jobPercentComplete": 0,
"destination": "destination",
"filePath": "filePath",
"encoderStatus": "Complete",
"outputGroups": [
{
"videoFileId": 21,
"customName": "hls",
"name": "AppleHLS",
"uploadedPath": "hls",
"type": 0,
"typeDescription": null,
"outputs": [
{
"name": "360p",
"nameModifier": "index",
"uploadedPath": "360p",
"progress": 100,
"status": null,
"statusDescription": "Complete",
"isCancelable": false,
"outputGroupId": 41,
"videoCodexType": null,
"videoWidth": 0,
"videoHeight": 0,
"videoBitrate": 0,
"audioCodexType": null,
"audioBitrate": 0,
"audioSampleRate": 0
}
]
}
],
"status": null
}
},
"resultInfo": null,
"statusCode": 200
}

The description to the fields in the code are written in the table below.

Parameter NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise will return false.
errorsarray[string]Indicates whether or not there was an error.
messagesarray[string]Returns the response message from back-end.
resultarray[Object]Returns the response object.
namestringThe unique name for the video that is being encoded.
callbackUrlstringURL to call when encoding is finsihed.
PublishStatusstringStatus of the publishing process.
videoFileObjectVideo File Object.
downloadUrlstringThe URL of the endcoded video.
uploadPathstringPath where video encodings are taken from.
progressstringProgress of the process.
jobPercentCompleteinteger($int32)Percentage of the completed job.
destinationstringURL of the destination.
filePathstringURL of the file.
encoderStatusstringStatus of encoder.
outputGroupsarray[Object]Output group array.
videoFileIdinteger($int32)Id of the video file.
customNamestringCustom name of the output group.
namestringName of the video.
uploadedPathstringUploaded Path.
typeinteger($int32)Type of the video.
typeDescriptionstringDescription of the type.
outputsarray[Object]Returns the outputs as an array of objects.
namestringName of the output.
nameModifierstringModifier of the name.
uploadedPathstringPath where uploaded.
progressinteger($int32)Progress of the process.
statusstringUnique id of the encoded video.
idstringStatus of the process.
statusDescriptionstringDescription of the status.
isCancelableboolValue that tells if the output is cancelable or not.
outputGroupIdinteger($int32)Id of the output group.
videoCodexTypestringType of the video codex.
idstringUnique id of the encoded video.
videoWidthinteger($int32)Width of the video.
videoHeightinteger($int32)Height of the video.
videoBitrateinteger($int32)Bitrate of the video.
audioCodexTypestringType of the audio codex.
audioBitrateinteger($int32)Bitrate of the audio.
audioSampleRateinteger($int32)Rate of the audio sample.
statusstringStatus of the record.
resultInfostringReturns extra info 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