A simple JavaScript wrapper for the Flickr API. Only implements methods that don't require authentication. Uses jQuery and JSONP to retrieve data.
var apiKey = '...';
var flickr = new Flickr(apiKey);
flickr.photos.search({
tags: 'cat'
}, function(response) {
var first = response.photos.photo[0];
var src = first.src('b'); // 'b' is an image size (1024 on longest side)
var href = first.href();
$('body').append('<a href="' + href + '"><img src="' + src + '"></a>');
});