i'm trying to do this using JavaScript but it's does not working. Any alternative to find youtube view count ?
videoId = videoUrl.match(rex),
jsonUrl = 'http://gdata.youtube.com/feeds/api/videos/' + videoId + '?v=2&alt=json',
$.getJSON(jsonUrl, function (videoData) {
var videoJson = JSON.stringify(videoData),
vidJson = JSON.parse(videoJson),
views = vidJson.entry.yt$statistics.viewCount;
$('.views').text(views);
});
Please help me.

Nilesh JadavPosted Oct 2, 2015, 4:07 AM
Nilesh JadavPosted Oct 2, 2015, 7:37 AM
Sanjay SabariyaPosted Oct 2, 2015, 6:37 AM