Another Last.fm/Spotify mashup
by leon on March 1, 2009
A month or so ago I hacked the last.fm for wordpress plugin to allow for integration with Spotify. The basic idea was that the plugin would pull in your recently played tracks and then allow users to open those tracks directly within Spotify by clicking on a green note.
A had a spare two hours this morning so decided to see what I could make in that time.
This new mash-up is a little different. You give it your Last.fm username and it will go and find your top artists. It then uses this to find the top tags for each of those artists. It then orders the tags by the amount of times they occur across your top artists and displays the result to you in a slider window. The images are pulled from Last.fm and they are for the top artist for each tag. The image resolution is based on the quality of the image on the Last.fm servers.
I used the Last.fm PHP API available from here as the basis for the mashup. There were quite a few sample scripts and I hacked a some of these together to get the functionality required. The slider part came from here.
You can view it by heading here and putting in your username. Please be patient as it takes a while to load everything in. Update! This keeps crashing my server so I will post a video of a locally run version.
I can’t wait for Spotify to release their own API as there would be the possibility to generate Spotify playlist based on your ‘loved’ tracks on Last.fm for example.
Leave your comment