Request examples
dQw4w9WgXcQ. You can provide up to 1k video IDs in the ids array to fetch data for multiple videos.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Unlock the ability to retrieve captions (subtitles) for YouTube videos.
const options = {
method: 'GET',
headers: {
Authorization: 'Bearer poix-xxx',
},
};
fetch('https://api.poix.io/captions/dQw4w9WgXcQ', options)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));
curl --request GET \
--url https://api.poix.io/captions/dQw4w9WgXcQ \
--header 'Authorization: Bearer poix-xxx'
import requests
url = "https://api.poix.io/captions/dQw4w9WgXcQ"
headers = {"Authorization": "Bearer poix-xxx"}
response = requests.request("GET", url, headers=headers)
print(response.text)
dQw4w9WgXcQ. You can provide up to 1k video IDs in the ids array to fetch data for multiple videos.
[
{
"text": "[Music]",
"duration": 14.65,
"offset": 0,
"lang": "en",
"wordCount": 1,
"speechRate": 5
},
{
"text": "we're no strangers to",
"duration": 7.239,
"offset": 18.8,
"lang": "en",
"wordCount": 7,
"speechRate": 59
},
// ...
{
"text": "goodbye",
"duration": 5.32,
"offset": 208.68,
"lang": "en",
"wordCount": 1,
"speechRate": 12
},
{
"text": "and",
"duration": 3,
"offset": 211,
"lang": "en",
"wordCount": 1,
"speechRate": 20
}
]