Once More... a farce in many parts. A comedy in others.

You may have begun to

Posted on July 7th, 2005 / comments

You may have begun to think that I seem obsessed with web API’s lately. I just want to assure you, gentle reader, that you’re right. Today, the Flickr API. I set out to enhance the photos from your contacts page so that it actually showed some information about each photo and not just a thumbnail. I want to see not just the photo and who it belongs to, but when it was uploaded, the title they gave it, any description they gave it, any tags assigned to it, and a notice if there are comments or notes on the photo. To do this, we

  1. take a Flickr user id (NSID, the long number with @ in it),

  2. query the “contact’s photos” RSS feed for that user id,
  3. and place an API call to flickr.photos.getInfo for each photo in that feed.

The rest is presentation. You can see it in action here, showing my contacts’ photos. Change the query string to your own NSID (update 7/8: or your username) to see a page with your contacts’ recent uploads. Please be kind, though. The script does use caching, but it also pulls your RSS feed and then places an API call for every photo in the RSS feed.