Grab album art from Google image search

Whilst working on some Shoutcast scripts, I thought it would be cool to grab the album art of the current playing song to display. I googled for services, but none seemed suitable. (If you know of one, please leave a comment below.)

We can grab an image using PHP & curl:

Simply pass through the song title eg: Radiohead – Fake Plastic Trees and it will return an image for you.

Now remember, this isn;’t an exact science, the image returned might not be related at all, but in my tests I found 90% of results perfectly acceptable.

Here’s how it looks:
Screen Shot 2013-01-24 at 20.31.52

About Louis

Louis is a Developer and all round geek from the UK with a keen interest in web technologies and mobile applications. When not playing with code, he is probably rebuilding a Linux server or watching a Netflix marathon!

This entry was posted in Coding and tagged , , . Bookmark the permalink.

Leave a Reply