This API allows you to fetch metadata for YouTube videos, including information such as title, thumbnails, likes, views count, upload date, video category, description, and creator details.
Request Payload:
Sample Request:
{
method: 'GET',
url: 'https://youtube-metadata-extractor.p.rapidapi.com/get_youtube_video_title_description',
params: {
url: 'https://youtu.be/YCaipV5Brmw'
},
headers: {
'X-RapidAPI-Key': 'f49735865emshbf9c9e79b8f1df4p106a71jsn3a5d8ba885fc',
'X-RapidAPI-Host': 'youtube-metadata-extractor.p.rapidapi.com'
}
};
Response Format:
Returns a JSON object containing detailed metadata:
title
: Title of the YouTube video.thumbnails
: An array of thumbnail objects containing URL, width, and height.viewsCount
: Total views count for the video.uploadDate
: Date and time when the video was uploaded.videoCategory
: Category of the video (e.g., “Comedy”).description
: Full description of the video.dislikes
: Number of dislikes for the video (null if not available).isShort
: Boolean indicating if the video is short.creatorDetails
: Information about the video creator, including name, channel link, subscribers count, and profile picture URL.
Sample Response:
{
"status": true,
"data": {
"title": "Narcotics | Stand-up Comedy | Aakash Gupta",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/inLh-UAWu_g/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLDH6zp31VXsG_acUUojEk0Uu6yE0A",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/inLh-UAWu_g/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAghOitcls6Tfuurgn-4KS7UMLQDA",
"width": 196,
"height": 110
},
// ... other thumbnail objects
],
"likes": null,
"viewsCount": "3894744",
"uploadDate": "2024-01-06T21:33:25-08:00",
"videoCategory": "Comedy",
"description": "Watch my Full Special on Insider here: https://bit.ly/3TjN8XI :)\n... [full description]",
"dislikes": null,
"isShort": false,
"creatorDetails": {
"name": "Aakash Gupta",
"channelLink": "https://www.youtube.com/channel/UCAYum5hCyfkSH5T3vSD_kwQ",
"subscribersCount": 4010000,
"profilePic": "https://yt3.ggpht.com/ytc/AIf8zZQuvCKHL9nBBN95DOXWn0d8eB913BDNLU3dvFgUNQ=s176-c-k-c0x00ffffff-no-rj"
}
},
"message": null
}
Error codes:
400
: Speficies that your are url not sent | Invalid youtube video link is sent.