Skip to main content
GET
/
files
/
captions
/
{videoId}
Get captions files list
curl --request GET \
  --url https://api.poix.io/files/captions/{videoId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.poix.io/files/captions/{videoId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.poix.io/files/captions/{videoId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.poix.io/files/captions/{videoId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.poix.io/files/captions/{videoId}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.poix.io/files/captions/{videoId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.poix.io/files/captions/{videoId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
[
  {
    "languageCode": "en",
    "languageName": "English (auto-generated)",
    "isAutoGenerated": true,
    "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=b2DyZtXMMZ2hi9oP_JmNkAo&caps=asr&opi=112496729&exp=xbt&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1727185631&sparams=ip,ipbits,expire,v,ei,caps,opi,exp,xoaf&signature=750EEBD31FAB04DE0E1F1266932F3C4044F113EB.2E33088AAE47992D009A6B199B413B9D7836E0FC&key=yt8&kind=asr&lang=en&fmt=json3"
  },
  {
    "languageCode": "en",
    "languageName": "English (auto-generated)",
    "isAutoGenerated": true,
    "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=b2DyZtXMMZ2hi9oP_JmNkAo&caps=asr&opi=112496729&exp=xbt&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1727185631&sparams=ip,ipbits,expire,v,ei,caps,opi,exp,xoaf&signature=750EEBD31FAB04DE0E1F1266932F3C4044F113EB.2E33088AAE47992D009A6B199B413B9D7836E0FC&key=yt8&kind=asr&lang=en&fmt=srt"
  },
  {
    "languageCode": "en",
    "languageName": "English (auto-generated)",
    "isAutoGenerated": true,
    "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=b2DyZtXMMZ2hi9oP_JmNkAo&caps=asr&opi=112496729&exp=xbt&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1727185631&sparams=ip,ipbits,expire,v,ei,caps,opi,exp,xoaf&signature=750EEBD31FAB04DE0E1F1266932F3C4044F113EB.2E33088AAE47992D009A6B199B413B9D7836E0FC&key=yt8&kind=asr&lang=en&fmt=vtt"
  },
  {
    "languageCode": "en",
    "languageName": "English (auto-generated)",
    "isAutoGenerated": true,
    "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=b2DyZtXMMZ2hi9oP_JmNkAo&caps=asr&opi=112496729&exp=xbt&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1727185631&sparams=ip,ipbits,expire,v,ei,caps,opi,exp,xoaf&signature=750EEBD31FAB04DE0E1F1266932F3C4044F113EB.2E33088AAE47992D009A6B199B413B9D7836E0FC&key=yt8&kind=asr&lang=en&fmt=ttml"
  },
  {
    "languageCode": "en",
    "languageName": "English (auto-generated)",
    "isAutoGenerated": true,
    "url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=b2DyZtXMMZ2hi9oP_JmNkAo&caps=asr&opi=112496729&exp=xbt&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1727185631&sparams=ip,ipbits,expire,v,ei,caps,opi,exp,xoaf&signature=750EEBD31FAB04DE0E1F1266932F3C4044F113EB.2E33088AAE47992D009A6B199B413B9D7836E0FC&key=yt8&kind=asr&lang=en&fmt=srv1"
  }
]
{
"success": false,
"error": {
"issues": [
{
"code": "too_big",
"maximum": 11,
"type": "string",
"inclusive": true,
"exact": true,
"message": "String must contain exactly 11 character(s)",
"path": [
"videoId"
]
}
],
"name": "ZodError"
}
}
{
"error": {
"message": "Forbidden"
}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

videoId
string
required

The YouTube video ID

Required string length: 11
Example:

"dQw4w9WgXcQ"

Query Parameters

format
enum<string>

The format of the response

Available options:
json,
text,
csv
Example:

"json"

lang
string

The language code for the captions

Required string length: 2
Example:

"en"

Response

Successful response

languageCode
string
required

The language code of the caption

languageName
string
required

The language name of the caption

isAutoGenerated
boolean
required

Whether the caption is auto-generated

url
string<uri>
required

The URL of the caption file