By default, Flickr only displays 20 items in a feed. I wanted to display everything, so I started to dig around in the API. Reading a Flickr forum post gave me the idea of using the Flickr API to pull out the contents of my Photostream so, after applying for an API key, I tried out the following URL:
http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=myapikey&per_page=500&format=feed-rss_200&user_id=myuserid
You can start to get an idea of the various parameters in the Flickr API explorer but it seems that the per_page limit is 50. Even so, by adding a &page=pagenumber to the URL, I can return the next page of results:
http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=myapikey&per_page=500&format=feed-rss_200&user_id=myuserid&page=2
Now all I need to do is work out how to cycle through all the pages and string them together to produce a feed with all of my images in it.
Leave a Reply