Merge Multiple Playlists
This guide shows you how to merge tracks from multiple playlists into a single playlist.
Use Cases
Section titled “Use Cases”- Combine your “Chill” and “Focus” playlists into a “Work” playlist
- Merge collaborative playlists from friends
- Create a “Best of” playlist from multiple genre playlists
Pipeline Configuration
Section titled “Pipeline Configuration”Web App
Section titled “Web App”- Create a new pipeline
- Add multiple Get Playlist Tracks tasks (one for each source playlist)
- Add a Merge Tracks task to combine them
- (Optional) Add a Deduplicate Tracks task to remove duplicates
- (Optional) Add a Shuffle Tracks task to mix them up
- Add a Save to Playlist task
name: Merge My Playliststasks: - 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