Board Thread:General Coding Help/@comment-32922752-20181004153238/@comment-27958705-20181004154601

text: js: $('.myclass').each(function { var $this = $(this),      url = 'https://www.googleapis.com/youtube/v3/videos?part=statistics&id=$yturl&key=$apikey';  url = url.replace('$yturl', $this.data('url')).replace('$apikey', $this.data('key'));  $.getJSON(url).done(function(data) { $this.text(data.items[0].statistics.viewCount); }); });