Skip to main content

GET Audio Assets

Overview


The following table contains information about the GET method in regards to retrieving the assets of an audio.

GET Audio Assets
MethodGET
URL or Endpoint/api/v1/projectId/audios/audioId/assets
HeadersAuthorization
ParametersaudioId, projectId, anyStatus, signedUrl
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.
audioIdYesstringUnique ID of the audio.

The description of the query parameters is as follows:

Parameter NameMandatoryTypeDescription
anyStatusNobooleanAudio status value.
signedUrlNobooleanIf set to false, all returned streaming URLs will exclude the secure token part even if secure tokens are enabled for the project.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"originalFile": "{originalFile}",
"originalFileName": "{originalFileName}",
"originalFileSize": 0,
"uploadFileDetailsId": 0,
"thumbnail": null,
//If audio contains chapters, the URL of the VTT File will apear like this:
"chaptersVtt": "https://cdn.vpplayer.tech/{projectId}/audio-encode/{audioId}/hls/chapter.vtt",
"streamResponse": {
"keyId": null,
"contentId": "{contentId}",
"progress": 100,
"progressTillReadiness": null,
"status": "Complete",
"errorId": null,
"error": null,
"encodingProcessRemainingTime": 0,
"insertDate": "2024-12-24T13:09:27.4701458",
"encodingProcessFinishTime": "2024-06-10T12:12:30.9299262Z",
"streams": [
{
"assetType": "Audio",
"streamType": "hls",
"root": "https://cdn.vpplayer.tech/{projectId}/audio-encode/{audioId}/hls/master_file.m3u8",
"qualityTypes": [
{
"id": "{audioId}",
"mediaType": "Audio",
"qualityType": "{qualityType}",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/audio-encode/{audioId}/hls/{qualityType}/audio/index.m3u8",
"statusDescription": "{statusDescription}",
"status": "{status}",
"duration": 19.722449,
"size": 318946,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "{audioCodec}",
"audioBitrate": 0,
"audioSampleRate": 0,
"progress": 100,
"startDateTime": "2025-02-14T13:08:28.129Z",
"endDateTime": "2025-02-14T13:08:28.129Z"
}
]
},
{
"assetType": "Audio",
"streamType": "{streamType}",
"root": "https://cdn.vpplayer.tech/{projectId}/audio-encode/{audioId}/{streamType}/master_file.m3u8",
"qualityTypes": [
{
"id": "{audioId}",
"mediaType": "Audio",
"qualityType": "{qualityType}",
"streamUrl": "https://cdn.vpplayer.tech/{projectId}/audio-encode/{audioId}/{streamType}/{qualityType}.mp3",
"statusDescription": "{statusDescription}",
"status": "{status}",
"duration": 19.722449,
"size": 318946,
"width": 0,
"height": 0,
"bitrate": 0,
"audioCodec": "{audioCodec}",
"audioBitrate": 0,
"audioSampleRate": 0,
"progress": 100,
"startDateTime": "2025-02-14T13:08:28.129Z",
"endDateTime": "2025-02-14T13:08:28.129Z"
}
]
}
]
}
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Top-Level Properties

Field NameTypeDescription
successbooleanIf 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
resultobjectReturns the response object
originalFilestringA unique identifier for the original audio file
originalFileNamestring or nullThe name of the original audio file
originalFileSizeinteger or nullThe size of the original audio file
uploadFileDetailsIdinteger or nullIdentifier of the upload file details.
thumbnailstringURL of the default thumbnail image of the audio
chaptersVTTstringURL of the VTT file for chapters
streamResponseobjectStream response object containing encoding status and streams.
resultInfostringReturns extra information about the result
statusCodeintegerReturns the HTTP Status Code

streamResponse Properties

Field NameTypeDescription
keyIdstringId of the key
contentIdstringId of the content
progressintegerOverall progress of the encoding process
progressTillReadinessintegerProgress until the audio is ready
statusstringCurrent status of the encoding process
errorIdintegerUnique identifier for the error
errorstringDescription of the error
encodingProcessRemainingTimeintegerTime remaining for encoding to complete
insertDatestring($date-time)Date and time when the audio was inserted
encodingProcessFinishTimestring($date-time)Timestamp of when the encoding finished
streamsarray[object]Array of stream objects.

streams Properties

Field NameTypeDescription
assetTypestringType of media
streamTypestringFormat of the stream (hls, mp3, flac)
rootstringThe URL of the root stream file.
qualityTypesarray[object]Array of quality type objects.

qualityTypes Properties

Field NameTypeDescription
idstringUnique identifier for this particular quality
mediaTypestringType of the media
qualityTypestringDescribes the quality of the stream (e.g., 128kbps, 192kbps, 320kbps)
streamUrlstringURL to access specific quality stream
statusDescriptionstringDescription of the current status
statusstringStatus of the quality stream
durationdoubleDuration of the stream in seconds
sizeintegerSize of the stream file in bytes
widthintegerWidth of the audio in pixels
heightintegerHeight of the audio in pixels
bitrateintegerBitrate of the stream in bits per second
audioCodecstringCodec used for the audio stream
audioBitrateintegerBitrate of the audio stream in Hz
audioSampleRateintegerSample rate of the audio stream in Hz
progressintegerProgress of encoding for this quality type
startDateTimestring($date-time)The UTC timestamp when the process begins.
endDateTimestring($date-time)The UTC timestamp when the process ends.
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