This page will help you get started with Subtitles.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
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
| Parameter | Type | Description |
|---|---|---|
| video_id | string | ID of the targeted video |
| srclang | string | Language 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.
Thesrclangis matched by its first two characters, soptresolves to a storedpt-BRtrack. 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.
