Last.fm to Apple Music playlist shortcut

This is a pretty handy Swiss Army knife-type shortcut for creating Apple Music Playlists from last.fm data. I originally wrote it so that I could create Apple Music playlists based upon the listening history of my last.fm musical neighbors. But as I started poking around on the web, I noticed that last.fm users were looking for ways to play their own playlists on Apple Music, too.

There are a few key variables in the shortcut, most are defined through menus as you run the shortcut. The only two you need to explicitly add to the top of the shortcut are username and APIKEY. You can get a last.fm API key here.

Username: the name of the user to use for a data source. I run this with my own username but also run it every once in a while with my musical neighbors’ usernames to create discovery-type playlists

Period: overall | 7day | 1month | 3month | 6month | 12month – The time period over which to retrieve top tracks for. You’ll select this from a menu when you run the shortcut.

Threshold (e.g. only include songs that have been listened to more than x times): the rationale for this variable is sometimes when creating a playlist you only want to include tracks that you (or whatever username you’re querying) has listened to multiple times. You’ll select this threshold from a menu when you run the shortcut.

Limit: the number of tracks to pull (note that if you select 50 tracks here but set the # of times listened threshold to a high number the playlist will only include the tracks that meet that threshold so may include less than 50 tracks).

This has been working pretty reliably for me for the past week or so, so I’m sending v 1.0 out into the world, hope you enjoy and find it useful. You can download it here.

Posted

in

,