#Search Playlist

Search for playlist on Youtube Music providing the text as query.

#Usage

  1. Import the Function
import YoutubeMusic from "youtube-music.js";
  1. Invoke the Function
YoutubeMusic.searchPlaylist("Chill Music") .then((response) => { // Handle the response data here console.log(response); }) .catch((error) => { // Handle errors here console.error(error); });

#Function Parameters

Query ParameterDescriptionDefaultRequired
queryThe search query for finding playlists on YouTube Music.undefinedTrue

#Important Notes

  • Provide a precise and complete album title for accurate search results.
  • Handle the API response and errors appropriately in your application logic.