In this tutorial, I will show you how to get the first 76 videos from youtube that you clicked on the like button.
The dimension parameter is also displayed and its value is returned.
1 2 3 4 5 6 7 8 9 10 | function retrieve_youtube_videos_likes() { var results = YouTube.Videos.list('snippet, contentDetails', {mine: true, myRating: 'like', maxResults: 76}); for(var i in results.items) { var item = results.items[i]; var id_like_title = item.snippet.title; var id_dimension = item.contentDetails.dimension; Logger.log('Title:[%s] dimension:[%s]',id_like_title, id_dimension); } } |
The result looks like this:
1 2 3 4 | 11:33:47 PM Info Title:[Rainbow Six Extraction: Sprawl Teaser] dimension:[2d] 11:33:47 PM Info Title:[WIN A FREE Pomera E INK Keyboard by KING JIM- REAL] dimension:[2d] 11:33:47 PM Info Title:[Adafruit Macropad RP2040 bring-up test] dimension:[2d] 11:33:47 PM Info Title:[Boeing MQ-25 Becomes First Unmanned Aircraft to Refuel Another Aircraft] dimension:[2d] |