Using the flickr API

with No Comments

This is a case study of how you can use Web Services to access information from another web application in your own blog.
Flickr have an application called the API Garden where you can put together a URL to call up the Web Service.

API garden interface
API garden interface

Picture 5

The API garden have a list of the available methods, which you can choose and then you can use the application to put together the correct URL.

This is the URL I put together to get a list of photos from a specific set:

http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=2d537c691c158b91201d3469eedd07c6&photoset_id=72157621516651630&api_sig=3d1a2dffeac7c399c1989044d0979ef2

Picture 4

I have used this information to display these images on my own blog. In reality I could write some XSLT and display them any way I want but in this case I have cheated and used wordpress and the SimpleFlickr plugin to display the photos in a blog post.