You can easily search for videos on Youtube using their v3 API.
npm i youtube-search-lib
You can pass four optional parameters as the second parameter. Such as, part, query, key, maxResults.
Google enforces a rate limit on the Youtube Data API. You will probably need to register your application for a key and supply this key in the options object..
const Search = require("youtube-search-lib");
or
import Search from "youtube-search-lib";
Search({ key: YOUR_API_KEY, term: "JavaScript", maxResults: 8 })
.then(videos => console.log(videos))