Share your repls and programming experiences

← Back to all posts
Get a list of YouTube Videos


This is more like a library. There is a JS file where the getYtVideos is stored and exported. You can get YouTube video links. You don't need YouTube API!

How to

It is easy! getYtVideos function will require two arguments:

  • searchFor - a string to search in YouTube
  • after(data) - a callback function to call after getting and filtering all the data from YouTube.

This is how you call this function:

The data which will be passed into the after callback function is an Array of YouTube video links. It will only give you first 20 videos found.

Look repl under to get more info.

Hope this might help you in some ways!