YouTube Video API
Using the YouTube Videos API you can scrape YouTube Videos results without worrying about proxy rotation and data parsing. Our API is fast and reliable.
Parameters
Scrapingdog Parameters
Parameter
Description
Localization
Parameter
Description
Search Query
Parameter
Description
API Example
cURL "https://api.scrapingdog.com/youtube/video?api_key=APIKEY&v=0e3GPea1Tyg"import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/youtube/video/"
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/video/';
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
{
"video": {
"id": "0e3GPea1Tyg",
"title": "$456,000 Squid Game In Real Life!",
"length_seconds": 1541,
"views": "876,754,415 views",
"likes": "19M",
"author": "MrBeast",
"published_time": "3 years ago",
"description": "MAKE SURE YOU WATCH UNTIL GLASS BRIDGE IT'S INSANE!\n\nWatch Beast Games now on Prime Video!!! https://www.beastgames.com\n\nThank you GoPro for supplying us with cameras to get some of these shots. You can get them here: https://prf.hn/l/6bNbQB3\n\nShoutout to SOKRISPYMEDIA for helping with visuals!\n\nCheck out Viewstats! - https://www.viewstats.com/\n\nFor any questions or inquiries regarding this video please reach out to [email protected]\n\n----------------------------------------------------------------\nfollow all of these or i will kick you\n• Facebook - / mrbeast6000 \n• Twitter - / mrbeast \n• Instagram - / mrbeast \n--------------------------------------------------------------------",
"keywords": [
"video",
"sharing",
"camera phone",
"video phone",
"free",
"upload"
],
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/maxresdefault.jpg"
},
"channel": {
"id": "UCRkuUgtDAL4XSU5jB40J_wA",
"name": "MrBeast",
"link": "https://www.youtube.com/@MrBeast",
"subscribers": "440M subscribers",
"featured_channel": {
"id": "UCRkuUgtDAL4XSU5jB40J_wA",
"name": "MrBeast",
"link": "https://www.youtube.com/@MrBeast"
},
"thumbnail": "https://yt3.ggpht.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s176-c-k-c0x00ffffff-no-rj"
},
"comment": {
"total": "634K"
},
"key_moments": [
{
"title": "Red Light",
"start_seconds": 0,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_4000.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLCcFMhkEIiZf7Wbhqtg8cRxUxbYXQ"
},
{
"title": "Honeycomb",
"start_seconds": 240,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_246000.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAAEgrwqyRs5nVyoPo5A4Lh5xAdEg"
},
{
"title": "Tug Of War",
"start_seconds": 460,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_480000.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLA6xvoUFRrrAxFfDIcYOCKl2pYCgw"
},
{
"title": "Marbles",
"start_seconds": 624,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_631000.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLC7asCNMSqwAsFtbVp_bSAUq8Vsdg"
},
{
"title": "Elimination",
"start_seconds": 676,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_703500.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDHmmk0CYH4kchE8zIEof35kOR8Fg"
},
{
"title": "Glass Bridge",
"start_seconds": 989,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_993000.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAW3qCntt6NTrsBPbX-xBO2HFXW_A"
},
{
"title": "Final Game",
"start_seconds": 1291,
"thumbnail": "https://i.ytimg.com/vi/0e3GPea1Tyg/hqdefault_1312500.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLCXWGtmxG_kLAPUXudsW-LUQ3J4xA"
}
],
"chapters": []
}Last updated