Get subtitle from video

This page will help you get started with Subtitles.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Endpoint

GET https://api-v2.pandavideo.com.br/subtitles/{video_id}/{srclang}

The Get Subtitle from Video endpoint facilitates the retrieval of subtitles associated with a specific video.

Path Parameters

ParameterTypeDescription
video_idstringID of the targeted video
srclangstringLanguage code of subtitles (source language)

Responses

📘

Responses

  • 200: Success. Retrieved subtitles.
  • 400: Bad request. Check the provided parameters.
  • 401: Unauthorized. Authentication failed or not provided.
  • 404: Not found.
  • 500: Internal server error. Please try again later.

Response

On success the endpoint returns the raw subtitle file content (WebVTT) as text — not JSON.

WEBVTT

00:00:00.000 --> 00:00:03.000
Olá, bem-vindo ao vídeo.
📘

The srclang is matched by its first two characters, so pt resolves to a stored pt-BR track. If no matching track exists, the endpoint returns 400.

Usage

Send a GET request to this endpoint, providing the video_id and srclang parameters in the URL, to retrieve subtitles associated with the specified video in the desired source language.

Description

The Get Subtitle from Video endpoint serves the purpose of fetching subtitles related to a particular video identified by its unique video_id. It requires the srclang parameter, indicating the language of the subtitles to retrieve. This endpoint facilitates access to subtitles, aiding in content comprehension and accessibility for diverse linguistic audiences.

Try It!

Click "Try It!" to initiate a request and view the response. You can also explore provided examples to understand how to structure the request in different programming languages.

Path Params
string
required
string
enum
required
Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json