Flickr feed problems. how to show all images from a photostream

Dan C picture Dan C · Nov 9, 2009 · Viewed 8.2k times · Source

I am using a bespoke JQuery/PHP script which parses a Flickr feed using SimpliePie and outputs an image gallery.

I have instructed my client to upload there images into their flickr account.

The images are showing but the feed seems to be limiting to 20 images, however, there are 40 images in the stream.

I have checked the API and there doesn't seem to be any paramaters to change this.

Has anyone come across this before, can anyone help me tweak the feed so that it pulls all the images in the photostream?

Here is the Flickr Stream and feed...

http://www.flickr.com/photos/44280289@N04/

http://api.flickr.com/services/feeds/photos_public.gne?id=44280289@N04&lang=en-us&format=rss_200

Answer

adamse picture adamse · Nov 9, 2009

It seems like you want to use the photosets.getPhotos api call. It will give you a maximum of 500 photos.

Here is an example which gives you the url of the photo in url_o

http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&extras=url_o&photoset_id=72157622766901612&api_key=[YOUR APIKEY HERE]

You need an api key to make it work.

You can also get the output as JSON directly by adding &format=json to the url.