Skip to content

How to get all the songs in the playlist? #1336

Answered by eritislami
wenbin1354 asked this question in Q&A
Discussion options

You must be logged in to vote

Basic

YouTube.getPlaylist("some_youtube_playlist")
  .then(console.log) // max 100 items
  .catch(console.error);

Fetch all videos immediately

YouTube.getPlaylist("some_youtube_playlist", { fetchAll: true })
  .then(console.log)
  .catch(console.error);

https://www.npmjs.com/package/youtube-sr

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wenbin1354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants