How To Automatically Display Views and Likes In Video Title

How To Automatically Display Views and Likes In Video Title

How To Automatically Display Views and Likes In Video Title in Hindi

AutoUpdating video title like Tom Scott’s Autoupdating video title like SidTalk

Self-Updating YouTube Video Title

In this video I will show you how to automatically update your youtube video title to display the amount of views and likes it has!

 

CODE :

function myFunction() {

var videoID = ‘YCKR89wd5Wo’; //https://youtu.be/YCKR89wd5Wo
var part = ‘snippet,statistics’;
var params = {‘id’: videoID};

var response = YouTube.Videos.list(part, params);
var video = response.items[0];
var videoViewsCount = video.statistics.viewCount;
var videoLikeCount = video.statistics.likeCount;
var videoDislikeCount = video.statistics.dislikeCount;
var videoCommentCount = video.statistics.commentCount;
var videoTitle = ‘WOW This video has ‘ + videoViewsCount + ‘ views and ‘ + videoLikeCount + ‘ likes and ‘ + videoDislikeCount + ‘ dislikes and ‘ + videoCommentCount + ‘ comments!!!’;

video.snippet.title = videoTitle;

try{
YouTube.Videos.update(video, part);

}catch(e){

}

}

 

• Apps Script – https://script.google.com/

Leave a Reply

Close Menu
×
×

Cart