Skip to main content

GET Video Subtitles

Overview


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

GET Video Subtitles by VideoId
MethodGET
URL or Endpoint/api/projects/projectId/videos/videoId/subtitles
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 for which subtitles are being fetched.

Request Body

The GET method doesn't contain a request body.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": [
{
"id": 0,
"videoId": "string",
"languageId": 0,
"languageName": "string",
"languageCode": "string",
"filePath": "string",
"extension": "string",
"active": true,
"isAutoGenerated": true,
"status": "string",
"statusId": 0
}
],
"resultInfo": "string",
"statusCode": 0
}

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, it will return false.
errorsarray[string]Indicates whether there was an error.
messagesarray[string]Returns the response messages from the backend.
resultarray[Object]Returns an array of subtitle objects.
idinteger($int32)The unique Id of the subtitle.
videoIdstringThe unique Id of the video.
languageIdinteger($int32)The unique Id of the language.
languageNamestringThe name of the language of the subtitle.
languageCodestringThe code for the subtitle language (e.g., "file").
filePathstringThe URL of the subtitle file.
extensionstringThe file extension of the subtitle (e.g., '.vtt').
activebooleanIndicates whether the subtitle is active.
isAutoGeneratedbooleanIndicates whether the subtitle is auto-generated.
statusstringThe current status of the subtitle (e.g., "In Progress").
statusIdinteger($int32)The unique Id of the subtitle's status.
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.

info

When subtitles are AI-generated:

  • If the video status is "In Progress" or "Pending", the languageName will display "(Auto-Generated)".
  • If the video status is "Ready", the languageName will show the actual language, e.g., "English (Auto-Generated)".
tip

For more information about subtitle statues, please visit the Subtitle Status API

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