Available sources for playlist composition
Playlists
A list of one or more of the current user playlists.
name: "New playlist"
nb_songs: 100
playlists:
- name: rock
- name: chill
- name: pop
weight: 0.25
About playlist names
Playlists are given with their simplified name, stripped of emojis and spaces. For example,
rock 70s ✌ should be written as rock70s in the configuration.
You can run the following code snippet to figure out the correct name you should give:
History
history lets you add your favourite songs from the past! Three time ranges are available:
short_termfor the last 4 weeksmedium_termfor the last 6 monthslong_termfor your all-time best.
history:
- time_range: "short_term"
- time_range: "long_term"
weight: 0.25
Uris
With uris, you can use any kind of playlist in your composition. Simply add the Spotify playlist uri or url in your YAML.
Warning
Spotify-owned playlists are not supported, their content is not accessible through the API.
uris:
- name: 50FTlBiOVTyPgVtPYVUzdn
- name: 7oK3UXsHYmC3PYGQFY5IOb
weight: 0.5
- name: https://open.spotify.com/playlist/7oK3UXsHYmC3PYGQFY5IOb?si=eae4b209bee740f8
weight: 0.25
Playlist URI or playlist URL ?
Both are supported. The URL link to share a playlist features its URI.
For example: https://open.spotify.com/playlist/7oK3UXsHYmC3PYGQFY5IOb?si=eae4b209bee740f8 is a link for the
playlist URI 7oK3UXsHYmC3PYGQFY5IOb.
Some playlist URIs to cover your needs
7oK3UXsHYmC3PYGQFY5IOb: Bob Dylan, the philosophy of modern song50FTlBiOVTyPgVtPYVUzdn: Les Inrockuptibles, Trésors Cachés- ...
Putting all this together
You can add as many items from as many sections as you'd like ! And create all kinds of playlists
A playlist for your monthly best-of
A playlist for a chill evening
name: "🌆 Calm Tunes"
nb_songs: 100
playlists:
- name: chill
selection_method: latest
uris:
- name: https://open.spotify.com/playlist/6LSRWYpEoo8KiXenl2xHOP?si=e83a89df1dca4728 # Les inrocks, trésors cachés
- name: https://open.spotify.com/playlist/4nutUe1JAzhJSna4mwSIw1?si=71f802c91a04416e # FIP, best-of du mois
Deprecated sources
In November 2024 and without warning, Spotify deprecated several entrypoints from their public API, removed features and access on others. Some Chopin features are no longer available, but might come back one day.
Features
Unavailable since Spotify removed access to the audio_features API routes.
With features, you can add recommendations to your playlist. Based on the current playlist composition, and
the feature value, recommended songs will be added. Available features are described in the API reference
Features come from Spotify audio features analysis
artists:
- name: David Bowie
- name: The Beatles
features:
- name: acousticness
value: 0.6
- name: popularity
value: 80
The above composition configuration will:
- Add Bowie and Beatles songs to your playlists.
- Based on these songs, it will recommend relatively acoustic new ones.
- Finally, it will recommend popular songs.
Artists
A list of artists to pick songs from. The name is used to query the Spotify API and retrieve
songs from Spotify's This is ... playlists.
name: "New playlist"
nb_songs: 20
artists:
- name: David Bowie
- name: The Beatles
- name: Johnny Cash
weight: 0.25
Radios
A list of artist's radios to pick songs from. The term "radio" refers here to the Spotify's Artist Name Radio playlists.
Songs from radios will include a few songs from the artist, and tracks from related artists.
name: "New playlist"
nb_songs: 50
radios:
- name: Pulp
- name: Elvis Costello
- name: Elliott Smith
weight: 0.25
Mixes
With mixes, you can search for genre-specific playlists curated by Spotify, such as "Bossa Nova Mix", "New Wave Mix", or "Singer Songwriter Mix" for example.