{"repo":"paulomcnally/youtube-node","free":true,"listed":false,"github":"https://github.com/paulomcnally/youtube-node","clone":"git clone https://github.com/paulomcnally/youtube-node.git","description":"Youtube api implementation for nodeJS","language":"JavaScript","stars":109,"topics":["youtube","javascript","youtube-api","cli","nodejs"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"youtube-node YouTube API v3 - Require key (video) CLI CLI For use CLI need install youtube-node using -g param. $ npm install youtube-node -g CLI Example getById ( require key and video ID ) $ youtube id CLI Example search (require key, query and maxResults) $ youtube search Usage Installation $ npm install youtube-node Example search (search term, num results, params, callback) return object var YouTube = require('youtube-node'); var youTube = new YouTube(); youTube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU'); youTube.search('World War z Trailer', 2, function(error, result) { if (error) { console.log(error); } else { console.log(JSON.stringify(result, null, 2)); } }); See output: https://gist.github.com/paulomcnally/620b76a9afe81f56e8c9 You can also pass in an optional params object. This is useful for paging: youTube.search('World War z Trailer', 2, {pageToken: 'XxXxX'}, function(error, result) { //as above example }); Page token is a property on the response - nextPageToken or previousPageToken Example getById (youtube id, result) return object var YouTube = require('youtube-node'); var youTube = new YouTube(); youTube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU'); youTube.getById('HcwTxRuq-uk', function(error, result) { if (error) { console.log(error); } else { console.log(JSON.stringify(result, null, 2)); } }); See output: https://gist.github.com/paulomcnally/50e0b96291c82b87009b Example related (youtube id, maxResults, result) return object var YouTube = requi","default_branch":null,"files":null,"tree":[],"storefront":"/r/paulomcnally","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paulomcnally/youtube-node/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}