📢 Public APIs
Get video comments
The API endpoint allows you to retrieve YouTube video comments based on the video's unique ID provided as a path variable.
When accessing this endpoint, you will receive a response containing complete details of the comments, including the author's information, like count, and the comment content.
This functionality facilitates accessing and displaying comprehensive comment data for a specific YouTube video.
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.
get/public/youtube/comments/{videoId}
Response
Get video comments
Example response
{
"data": [
{
"id": "Ugy7jJj0-yhsx8HHMFd4AaABAg",
"snippet": {
"topLevelComment": {
"id": "Ugy7jJj0-yhsx8HHMFd4AaABAg",
"snippet": {
"authorDisplayName": "Hitesh Choudhary",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AOPolaTLK52bUQ_YHxgb7RK8GMt_bksIMavy-aEZ9fUOvg=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 7,
"publishedAt": "2023-06-05T13:40:02Z",
"textDisplay": "Here is a sample snippet that I saved and everyone can use:<br><a href=\"https://hitesh.pieces.cloud/?p=3fcb449271\">https://hitesh.pieces.cloud/?p=3fcb449271</a><br>Try out, it's free and fun. 😁",
"textOriginal": "Here is a sample snippet that I saved and everyone can use:\nhttps://hitesh.pieces.cloud/?p=3fcb449271\nTry out, it's free and fun. 😁",
"updatedAt": "2023-06-05T13:40:02Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "UgzPqnl9cLUYCapS2B94AaABAg",
"snippet": {
"topLevelComment": {
"id": "UgzPqnl9cLUYCapS2B94AaABAg",
"snippet": {
"authorDisplayName": "Souvik",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AOPolaRFW6MuJ_9ZuK2M8onhOkhB_4rJal27w0oeqj5MulMQdaBeMeyxYEREyKWrU8zO=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 0,
"publishedAt": "2023-07-18T08:12:45Z",
"textDisplay": "The privacy is bothering me. It needs to manage other apps directly",
"textOriginal": "The privacy is bothering me. It needs to manage other apps directly",
"updatedAt": "2023-07-18T08:12:45Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "UgxiJ5aavyaL8aliC4Z4AaABAg",
"snippet": {
"topLevelComment": {
"id": "UgxiJ5aavyaL8aliC4Z4AaABAg",
"snippet": {
"authorDisplayName": "SinniS _",
"authorProfileImageUrl": "https://yt3.ggpht.com/uCg_8znbQm013IRtjuhh_j3dGuZLfCaA5UAGc3S0rAqFexMX6Cuu3lUMq7GuUE0tv5wQl-K29Q=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 0,
"publishedAt": "2023-07-16T15:40:52Z",
"textDisplay": "Bro try usiing codepen and you will see pieces break the codepen text editor section 😢😢",
"textOriginal": "Bro try usiing codepen and you will see pieces break the codepen text editor section 😢😢",
"updatedAt": "2023-07-16T15:40:52Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "Ugxm1dkMJkpXZw303EZ4AaABAg",
"snippet": {
"topLevelComment": {
"id": "Ugxm1dkMJkpXZw303EZ4AaABAg",
"snippet": {
"authorDisplayName": "Zeeshan Mukhtar",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AOPolaRYCUMTNcfnyi7yZ-CEuLduLHalFVgKHYQaLeCX9A=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 0,
"publishedAt": "2023-07-08T15:52:50Z",
"textDisplay": "Love from Pakistan",
"textOriginal": "Love from Pakistan",
"updatedAt": "2023-07-08T15:52:50Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "UgwG5ZXUE5ha7F1LH9t4AaABAg",
"snippet": {
"topLevelComment": {
"id": "UgwG5ZXUE5ha7F1LH9t4AaABAg",
"snippet": {
"authorDisplayName": "Md Monirul Islam",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AOPolaRL1YDHzjBWX-Yfaqgad99MK3WjsX04uxzPOHbK=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 0,
"publishedAt": "2023-06-13T12:05:28Z",
"textDisplay": "Thank you for the nice video, sir. How did you capture the screen shot? Can you tell me what tool you used?",
"textOriginal": "Thank you for the nice video, sir. How did you capture the screen shot? Can you tell me what tool you used?",
"updatedAt": "2023-06-13T12:05:28Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "UgyQtSikGpg6IJNtzZ14AaABAg",
"snippet": {
"topLevelComment": {
"id": "UgyQtSikGpg6IJNtzZ14AaABAg",
"snippet": {
"authorDisplayName": "Saboor Hamedi (Muhammad)",
"authorProfileImageUrl": "https://yt3.ggpht.com/gA5mKTNGikMdBOSki5PWo3bZfy8h6k6243kxXcgiFs7jKQBPKL5-LAmc2jTEl9LN_c4XuU_6=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 2,
"publishedAt": "2023-06-12T05:49:01Z",
"textDisplay": "I love this app, to be honest, it has changed my coding career in just one day, I can note the codes quickly, and other things. I have a suggestion. But I found a couple of problems there, first, its difficult to arrange the frame on the windows, I cannot arrange it, like maximizing. Second, wrapping text, I cannot wrap the text, it is put in a long line...",
"textOriginal": "I love this app, to be honest, it has changed my coding career in just one day, I can note the codes quickly, and other things. I have a suggestion. But I found a couple of problems there, first, its difficult to arrange the frame on the windows, I cannot arrange it, like maximizing. Second, wrapping text, I cannot wrap the text, it is put in a long line...",
"updatedAt": "2023-06-12T22:23:19Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
},
{
"id": "Ugye5hCxMMzr_9X91F94AaABAg",
"snippet": {
"topLevelComment": {
"id": "Ugye5hCxMMzr_9X91F94AaABAg",
"snippet": {
"authorDisplayName": "Imtiaz Hussain",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AOPolaQqqur1SJ8YJPiE6SDWIyaK6GU5Q1mAAe9MIeWc=s48-c-k-c0x00ffffff-no-rj",
"likeCount": 0,
"publishedAt": "2023-06-11T15:11:30Z",
"textDisplay": "I'm curious why does Pieces require these permissions? <br>• Manage other apps directly\r<br>• Gathers diagnostic information about other apps",
"textOriginal": "I'm curious why does Pieces require these permissions? \n• Manage other apps directly\r\n• Gathers diagnostic information about other apps",
"updatedAt": "2023-06-11T15:11:30Z"
}
},
"totalReplyCount": 0,
"videoId": "cv-6bAeYsOY"
}
}
],
"message": "Video comments fetched successfully",
"statusCode": 200,
"success": true
}