Get video by id
This API endpoint allows you to retrieve a YouTube video's complete details by passing the videoId as a path variable.
When accessing this endpoint with a valid video ID, you will receive a response containing comprehensive information about the specified video.
This includes video statistics such as the number of likes, dislikes, views, and the video's duration, as well as other relevant details like the video title, description, channel name, and publication date.
This functionality enables you to access and display detailed information about specific YouTube videos within your application.
Disclaimer:
Data provided by the API is static and not real-time.
This simplifies the process of developing a YouTube clone, allowing developers to solely focus on UI design and creativity, without worrying about complex API key configuration.
Response
Get video by id
Example response
{
"data": {
"channel": {
"info": {
"country": "IN",
"customUrl": "@hiteshchoudharydotcom",
"description": "Website: https://hiteshchoudhary.com\nHey there everyone, Hitesh here back again with another video!\nThis means I create a lot of videos, every single week. I cover a wide range of subjects like programming, what's latest in tech, new frameworks, open-source products etc. I keep my interest in a wide area of tech like Javascript, Python, PHP, Machine Learning, etc.\n\nFor the Business purpose, Sponsorships and invitation, reach out at team@hiteshchoudhary.com\n\nNOTE: Personal questions and code-related questions are not answered at this email. Post them in the course discussion section or react me out at social platforms.\n\n#iWriteCode\n\nInstagram: https://instagram.com/hiteshchoudharyofficial\nFacebook: www.fb.com/HiteshChoudharyPage",
"localized": {
"description": "Website: https://hiteshchoudhary.com\nHey there everyone, Hitesh here back again with another video!\nThis means I create a lot of videos, every single week. I cover a wide range of subjects like programming, what's latest in tech, new frameworks, open-source products etc. I keep my interest in a wide area of tech like Javascript, Python, PHP, Machine Learning, etc.\n\nFor the Business purpose, Sponsorships and invitation, reach out at team@hiteshchoudhary.com\n\nNOTE: Personal questions and code-related questions are not answered at this email. Post them in the course discussion section or react me out at social platforms.\n\n#iWriteCode\n\nInstagram: https://instagram.com/hiteshchoudharyofficial\nFacebook: www.fb.com/HiteshChoudharyPage",
"title": "Hitesh Choudhary"
},
"publishedAt": "2011-10-24T10:25:16Z",
"thumbnails": {
"default": {
"height": 88,
"url": "https://yt3.ggpht.com/ytc/AOPolaTLK52bUQ_YHxgb7RK8GMt_bksIMavy-aEZ9fUOvg=s88-c-k-c0x00ffffff-no-rj",
"width": 88
},
"high": {
"height": 800,
"url": "https://yt3.ggpht.com/ytc/AOPolaTLK52bUQ_YHxgb7RK8GMt_bksIMavy-aEZ9fUOvg=s800-c-k-c0x00ffffff-no-rj",
"width": 800
},
"medium": {
"height": 240,
"url": "https://yt3.ggpht.com/ytc/AOPolaTLK52bUQ_YHxgb7RK8GMt_bksIMavy-aEZ9fUOvg=s240-c-k-c0x00ffffff-no-rj",
"width": 240
}
},
"title": "Hitesh Choudhary"
},
"statistics": {
"subscriberCount": "801000",
"videoCount": "1442",
"viewCount": "54384618"
}
},
"video": {
"items": {
"contentDetails": {
"caption": "false",
"definition": "hd",
"dimension": "2d",
"duration": "PT5M48S",
"licensedContent": true,
"projection": "rectangular"
},
"id": "EQwmQLU1S6I",
"kind": "youtube#video",
"snippet": {
"categoryId": "28",
"channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
"channelTitle": "Hitesh Choudhary",
"defaultAudioLanguage": "en",
"description": "https://hc.lco.dev/jscamp2\nWallpaper: https://imgur.com/a/FYHfk\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
"liveBroadcastContent": "none",
"localized": {
"description": "https://hc.lco.dev/jscamp2\nWallpaper: https://imgur.com/a/FYHfk\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
"title": "Let's kill all programming language | playlist intro"
},
"publishedAt": "2023-05-23T12:30:05Z",
"tags": [
"Programming",
"javascript",
"python",
"rust",
"java",
"c++",
"swift",
"typescript"
],
"thumbnails": {
"default": {
"height": 90,
"url": "https://i.ytimg.com/vi/EQwmQLU1S6I/default.jpg",
"width": 120
},
"high": {
"height": 360,
"url": "https://i.ytimg.com/vi/EQwmQLU1S6I/hqdefault.jpg",
"width": 480
},
"maxres": {
"height": 720,
"url": "https://i.ytimg.com/vi/EQwmQLU1S6I/maxresdefault.jpg",
"width": 1280
},
"medium": {
"height": 180,
"url": "https://i.ytimg.com/vi/EQwmQLU1S6I/mqdefault.jpg",
"width": 320
},
"standard": {
"height": 480,
"url": "https://i.ytimg.com/vi/EQwmQLU1S6I/sddefault.jpg",
"width": 640
}
},
"title": "Let's kill all programming language | playlist intro"
},
"statistics": {
"commentCount": "53",
"favoriteCount": "0",
"likeCount": "433",
"viewCount": "7861"
}
},
"kind": "youtube#videoListResponse"
}
},
"message": "Video fetched successfully",
"statusCode": 200,
"success": true
}