This project has moved and is read-only. For the latest updates, please go here.

TotalPages in flickr.PhotosetsGetPhotos()

Topics: Developer Forum, Project Management Forum, User Forum
Aug 18, 2008 at 2:17 PM


I'm having some trouble to page through the results of a search inside a Photoset.

While the PhotoSearch() method (with the paging parameters) returns Photos, which allows me to get the number of pages (TotalPages property), the flickr.PhotosetsGetPhotos(photosetId, pageNumber, photosPerPage) returns a Photoset object containing a PhotoCollection. Is there a way to know the number of pages of that result? I imagine so, because in the definition of the Flickr API, the resulting XML is something like:

<photoset id="4" primary="2483" page="1" perpage="500" pages="1" total="2">
    <photo id="2484" secret="123456" server="1" title="my photo" isprimary="0" />
    <photo id="2483" secret="123456" server="1" title="flickr rocks" isprimary="1" />

I would appreciate some help.

Thanks again!


Aug 18, 2008 at 4:01 PM
Apologies, yes, that is missing. They added the 'paging' support for photosets.getPhotos method late in the day and I haven't implemented it as fully as the method.

Aug 18, 2008 at 9:10 PM
Oh! Ok...

Thanks, anyway!