logo       

[Flickr APIs] tag-based sorting and viewing - optimal queries?: msg#00017

web.flickr.api

Subject: [Flickr APIs] tag-based sorting and viewing - optimal queries?

Hello list,

If I want to get hold of the ids of all my photos, and their respective tags, what's the nicest way to ask for that from the API?

So far, I can do:
* "flickr.photos.search" with a user_id to get all (or a subset) of a user's photos and then "flickr.tags.getListPhoto" for each one. n+1 requests to build the data for n photos.
or:
* "flickr.tags.getListUser" to get all a user's tags, and then flickr.photos.search for each tag. t+1 requests for t tags (so only fewer requests if t < n), but duplicate data transferred (in terms of getting ids of photos more than once), and the possibility of missing photos (but untagged photos might not be wanted in this app anyway).

Is there another way? Could there be an option on flickr.photos.search to send tags too? Maybe at a limit of 100 photos per page to avoid accidental Danger Will Robinson? :)

Any advice appreciated,

Tom.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise