Originally published on: 12/16/2005 7:11:36 AM
Arieanna Foley's original posting discussed using Amazon's photos (of which there are millions). That gives you book covers, DVD covers, etc. which is a great idea. I, then, wondered aloud about using Flickr's API in concert with their Creative Commons search capability to find photos licensed for reuse. If an interface to easily grab a photo wrapped in HTML that properly credited the photographer, you'd have a handy tool for adding these types of photos to your site. Kind of like the one here.
Soooo, what did I do instead of finishing the Christmas letter I was supposed to be writing last night? I built just such a thing. I think I'll be putting up a permanent version of it over at Empire of Blog as a free service, but in the mean time you can play around with the prototype.
It takes a given keyword (needs to be a single word in the prototype) and gets you 25 "interesting" photos from Flickr, based on that tag and licensed according to your intended use. It also presents you with a list of related tags, letting you meander your way through interesting photos. You can preview each thumbnail and, when you find one you'd like to use, grab the HTML to drop it into your content.
I did learn a few things through the process that you're going to want to know if you should choose to take on working with the Flickr API. That's detailed in another post later today.
In the mean time, go and mess with the prototype. I will warn you though, because of what Flickr's "interesting" filter brings to the top, you may get content that's unsafe for work. The vast majority of searches are perfectly OK, but I was surprised more than once at what came back given what I searched for. So, you may want to take a look at home first before you risk content your mother or boss might not be happy seeing over your shoulder.
[link] => http://www.flickr.com/photos/69005233@N00/49136349
[title] => web
[thumb] => http://static.flickr.com/25/49136349_fa225b67f3_s.jpg
[small] => http://static.flickr.com/25/49136349_fa225b67f3_m.jpg
[medium] => http://static.flickr.com/25/49136349_fa225b67f3.jpg
[ownerid] => 69005233@N00
[owner_realname] =>
[owner_profileurl] =>
I'm going to have to dig more to figure out why both of those last 2 entries are empty on yours.
That's a good thing for most readers as I bring things to their attention that they wouldn't otherwise see, but has a downside in that I don't always get back to experiments that are half-finished.
However, I usually try to make sure that, like this one, the experiments are at least minimally useable before I shove them out the door, so you can at least use them while I wallow in my adult ADD.
http://www.flickr.com/terms.gne