
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
Youtubei is made to replace my other library scrape-yt. Instead of scrapping data from Youtube page, youtubei fetches data by sending a request directly to https://www.youtube.com/youtubei/v1, which should be faster and provide more reliable result.
Requires Node >= 16
npm i youtubei
or use the dev build directly from GitHub:
npm i git://github.com/suspiciouslookingowl/youtubei.git#dist
const { Client, MusicClient } = require("youtubei");
// or for TS / ES6
import { Client, MusicClient } from "youtubei";
const youtube = new Client();
const music = new MusicClient();
const run = async () => {
const videos = await youtube.search("Never gonna give you up", {
type: "video", // video | playlist | channel | all
});
console.log(videos.items.length); // 20
const nextVideos = await videos.next(); // load next page
console.log(nextVideos.length); // 18-20, inconsistent next videos count from youtube
console.log(videos.items.length); // 38 - 40
// you can also pass the video URL
const video = await youtube.getVideo("dQw4w9WgXcQ");
const channelVideos = await video.channel.videos.next();
const channelPlaylists = await video.channel.playlists.next();
// you can also pass the playlist URL
const playlist = await youtube.getPlaylist("UUHnyfMqiRRG1u-2MsSQLbXA");
console.log(playlist.videos.items.length); // first 100 videos;
let newVideos = await playlist.videos.next(); // load next 100 videos
console.log(playlist.videos.items.length); // 200 videos;
await playlist.videos.next(0); // load the rest videos in the playlist
// search using music client
const shelves = await music.search("Never gonna give you up");
console.log(shelves);
};
run();
FAQs
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
The npm package youtubei receives a total of 1,865 weekly downloads. As such, youtubei popularity was classified as popular.
We found that youtubei demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.