Using the Youtube API to search for videos

How to use the Youtube Data API V3 in Javascript to search for videos.
Github repository:
NOTE: A lot of people are getting the error “Cannot read property ‘search’ of undefined”, it’s because you have to run your program in a webserver (apache or nginx for exemple), the YouTube API won’t load otherwise

Follow me on Twitter:
Read my blog (electronics and development):



Do NOT follow this link or you will be banned from the site!