YouTube Video API
The YouTube Video API lets you scrape detailed metadata for any YouTube video including title, views, likes, description, keywords, channel info, key moments, and chapters. Each successful request costs 5 API credits.
Endpoint:
https://api.scrapingdog.com/youtubeAPI Parameters
π
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
π¬
Video
video_idRequiredThe YouTube Video ID. Found in the video URL after?v=(e.g., foryoutube.com/watch?v=0e3GPea1Tyg, the ID is0e3GPea1Tyg).
Type: String
π
Localization
countryOptionalThis parameter specifies the country for the YouTube Videos using a two-letter country code (e.g.,usfor the United States,ukfor the United Kingdom, orfrfor France). Default:us
Type: StringlanguageOptionalLanguage of the results. Possible Values βen,es,fr,de, etc. Default:en
Type: String
API Examples

Code to Integrate
curl "https://api.scrapingdog.com/youtube?api_key=APIKEY&video_id=0e3GPea1Tyg"
import requests params = { "api_key": "APIKEY", "video_id": "0e3GPea1Tyg", "country": "us", "language": "en" } response = requests.get("https://api.scrapingdog.com/youtube", params=params) data = response.json() print(data["video"]["title"], "-", data["video"]["views"], "views")
const params = new URLSearchParams({ api_key: "APIKEY", video_id: "0e3GPea1Tyg", country: "us", language: "en" }); const res = await fetch(`https://api.scrapingdog.com/youtube?${params}`); const { video, channel } = await res.json(); console.log(video.title, channel.subscribers);
<?php $url = 'https://api.scrapingdog.com/youtube?' . http_build_query([ 'api_key' => 'APIKEY', 'video_id' => '0e3GPea1Tyg', 'country' => 'us', 'language' => 'en', ]); echo file_get_contents($url);
API Response
{
"video": {
"id": "tj7Sd7fs6JQ",
"title": "Model S & X Signature Delivery Event",
"views": "357,259 views",
"likes": null,
"author": "Tesla",
"published_time": "Streamed live on May 20, 2026",
"description": "Model S & X changed automotive history forever by proving that an EV could be the best car possible β of any kind.",
"keywords": [
"video",
"sharing",
"camera phone",
"video phone",
"free",
"upload"
],
"thumbnail": "https://i.ytimg.com/vi/tj7Sd7fs6JQ/maxresdefault.jpg"
},
"channel": {
"id": "UCKDzDLnM159t11IaUa9TiYQ",
"name": "Tesla",
"link": "https://www.youtube.com/@tesla",
"subscribers": "2.94M subscribers",
"featured_channel": {
"id": "UCKDzDLnM159t11IaUa9TiYQ",
"name": "Tesla",
"link": "https://www.youtube.com/@tesla"
},
"thumbnail": "https://yt3.ggpht.com/YMRZbg8UjcGgiFOj4qxIWynU..."
},
"comment": {
"total": "1.8K"
},
"key_moments": [],
"chapters": []
}