Expand a playlist
expand_playlistBuilds a draft of more songs from artists in an existing playlist, adding up to 2 tracks per artist for the 30 most frequent artists while excluding songs already included.
Instructions
Build a draft of more songs by the artists of an existing playlist (default 2 per artist, the 30 most frequent artists), excluding tracks the playlist already has. Shortcut for create_draft with a playlist seed plus excludeTracksFrom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| order | No | interleave (default, spreads artists), lineup (artist by artist), shuffle, by_day, known_first | |
| public | No | ||
| bpmRange | No | Keep only tracks whose tempo (Deezer) is in this range, e.g. running { min: 160, max: 180 } | |
| playlist | Yes | open.spotify.com/playlist link, spotify:playlist: URI, playlist id, a playlist name from your own library, a deezer.com/playlist link, a draft id (d_xxxx), or "library" for your liked songs | |
| provider | No | spotify: needs a connected account, can publish. deezer: no account or login at all, every feature except publishing (export the list instead). Default: spotify when connected, otherwise deezer | |
| maxTracks | No | ||
| strictBpm | No | With bpmRange: also drop tracks with no known tempo | |
| yearRange | No | Keep only tracks released in this range, e.g. { from: 1990, to: 1999 } | |
| skipCovers | No | Drop a song when a more popular artist has the original (e.g. a Motörhead cover of Enter Sandman). Off by default; costs one Deezer lookup per track | |
| strictYear | No | With yearRange: also drop tracks whose year is unknown or comes from a remaster/compilation | |
| limitArtists | No | default 30 | |
| allowVersions | No | Allow live/remix/edit versions | |
| discoveryOnly | No | Skip artists already in the user's top or followed artists | |
| tracksPerTier | No | ||
| excludeArtists | No | ||
| maxDurationMin | No | Total length cap, e.g. 45 for a commute | |
| excludeExisting | No | default true | |
| excludeExplicit | No | ||
| tracksPerArtist | No | Same count for every artist; overrides tracksPerTier. Use 1 for "one song per artist" |