Answer the question
In order to leave comments, you need to log in
How to get the number of likes and views for a youtube video?
Hello.
I would like to know how can I get the number of likes and views for a youtube video using javascript.
I'm trying to do this using the DATA API .
How I do it now:
var channelName = 'RAYWILLIAMJOHNSON';
$.get(
"https://www.googleapis.com/youtube/v3/channels",{
part: 'contentDetails',
forUsername: channelName,
key: '**some_key**',
function(data){
console.log(data)
}
}
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question