Skip to content

Merge Multiple Playlists

This guide shows you how to merge tracks from multiple playlists into a single playlist.

  • Combine your “Chill” and “Focus” playlists into a “Work” playlist
  • Merge collaborative playlists from friends
  • Create a “Best of” playlist from multiple genre playlists
  1. Create a new pipeline
  2. Add multiple Get Playlist Tracks tasks (one for each source playlist)
  3. Add a Merge Tracks task to combine them
  4. (Optional) Add a Deduplicate Tracks task to remove duplicates
  5. (Optional) Add a Shuffle Tracks task to mix them up
  6. Add a Save to Playlist task
merge-playlists.yaml
name: Merge My Playlists
tasks:
- type: getPlaylistTracks
playlistId: "playlist-id-1"
- type: getPlaylistTracks
playlistId: "playlist-id-2"
- type: getPlaylistTracks
playlistId: "playlist-id-3"
- type: mergeTracks
- type: deduplicateTracks
strategy: byTrackId
- type: shuffleTracks
- type: saveToPlaylist
name: "Combined Playlist"
mode: replace
  • Order matters - Tracks are merged in the order the source tasks appear
  • Deduplicate - If the same track appears in multiple source playlists, use the deduplicate task to remove duplicates
  • Limit the result - Use a Limit Tracks task if you want to cap the total number of tracks