Open kelvinsinferno opened 2 years ago
function searchByKeyword() { var results = YouTube.Search.list('id,snippet', {q: 'dogs', maxResults: 25}); for(var i in results.items) { var item = results.items[i]; Logger.log('[%s] Title: %s', item.id.videoId, item.snippet.title); } }
https://developers.google.com/youtube/v3/quickstart/js We the youtube api conducts a youtube search consisting of Name and song sorting by number of plays picking the most played video
-we deliver to our page whatever video meets the above criteria
-we deliver the youtube link to the button if no video is found the carousel moves on to the next top 40 song
API keyAIzaSyDtZK7v4AhM4wyZDLwKYDslq41EM0i3Gzw