This simple example tutorial shows how to get a list of videos from youtube based on a query search. The query is defined like this with the q for word of search, a published after date, and more …
| { q: 'python', type: 'video', eventType: 'completed', maxResults: 25, order: 'date', publishedAfter: '2022-07-10T00:00:00Z' } |
This is the source code:
| function search_query(id) { var results = YouTube.Search.list('id,snippet', { q: 'python', type: 'video', eventType: 'completed', maxResults: 25, order: 'date', publishedAfter: '2022-07-10T00:00:00Z' }); var data = []; for(var i = 0; i < results.items.length; i++) { Logger.log(results.items[i].snippet.title); } } |
This is the result of running my source code:… Read More »