#Playlist Details

Get all the tracks of a playlist.

#Usage

  1. Import the Function
import YoutubeMusic from "youtubemusic.js";
  1. Invoke the Function
YoutubeMusic.getPlaylist("VLRDCLAK5uy_l9nSIU91U-FUBH_0P9wB3dVewP9gCwD2Y") .then((response) => { // Handle the response data here console.log(response); }) .catch((error) => { // Handle errors here console.error(error); });

#Function Parameters

Query ParameterDescriptionDefaultRequired
idThe playlist id.undefinedTrue

#Return Value

The function returns an array of objects, containing detailed information about the playlist tracks. The structure of each object conforms to the IPlaylistTracks interface defined in the interfaces/index.ts file.