This tutorial contains a function that can be included in your Google Apps Script and will help you monitor likes based on the youtube channel you liked.
The function returns the Youtube channel you liked in the order from the last like to the first.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | function retrieve_youtube_channels_likes() { var results = YouTube.Channels.list('snippet, contentDetails', {mine: true}); for(var i in results.items) { var item = results.items[i]; var playlistId = item.contentDetails.relatedPlaylists.likes; var nextPageToken = ''; while (nextPageToken != null) { var playlistResponse = YouTube.PlaylistItems.list('snippet', { playlistId: playlistId, maxResults: 25, pageToken: nextPageToken }); for (var j = 0; j < playlistResponse.items.length; j++) { var playlistItem = playlistResponse.items[j]; Logger.log('Title:[%s] Id:[%s]', playlistItem.snippet.videoOwnerChannelTitle, playlistItem.snippet.videoOwnerChannelId); } nextPageToken = playlistResponse.nextPageToken; } } } |
The output results in the Execution log area show like this:
1 2 3 | ... 6:01:57 PM Info Title:[Charbax] Id:[UC_VskFf9nosePUtxucxirRQ] ... |