YouTube Transcripts API
Using the YouTube Transcripts API you can scrape Youtube Transcripts results without worrying about proxy rotation and data parsing. Our API is fast and reliable.
Parameter
Description
API Example
cURL "https://api.scrapingdog.com/youtube/transcripts?api_key=APIKEY&v=0e3GPea1Tyg"import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/youtube/transcripts/"
params = {
"api_key": api_key,
"v": "0e3GPea1Tyg"
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
const axios = require('axios');
const api_key = 'APIKEY';
const url = 'https://api.scrapingdog.com/youtube/transcripts/';
const params = {
api_key: api_key,
v: '0e3GPea1Tyg'
};
axios
.get(url, { params: params })
.then(function (response) {
if (response.status === 200) {
const data = response.data;
console.log(data)
} else {
console.log('Request failed with status code: ' + response.status);
}
})
.catch(function (error) {
console.error('Error making the request: ' + error.message);
});
API Response
{
"transcripts": [
{
"text": "- [Mr. Beast] I've\nrecreated every single set",
"start": 0.15,
"duration": 1.773
},
{
"text": "from Squid Game in real life,",
"start": 1.923,
"duration": 1.857
},
{
"text": "and whichever one of these 456\npeople survives the longest,",
"start": 3.78,
"duration": 3.6
},
{
"text": "wins 456 grand.",
"start": 7.38,
"duration": 2.1
},
........
]
} Last updated