I wanted to download a picture from the Flickr using the flicker API. I am using OAuth for authentication.
When I searched on the site, I got an API called flickr.photos.getInfo. But it only gives the path to the page where the picture belongs.
Can anyone tell me where I can get an API to get the actual path to an image?
Flickr API's methods construct an endpoint (an url) which returns data in XML or JSON format. Once that is done, you may decode that data using many programming languages and present that to your users. Every Flickr API method has got several arguments to be passed, Some required and some optional.
The Flickr API is available for non-commercial use by outside developers. Commercial use is possible by prior arrangement.
Oh I got the answer.
The API function is called flickr.photos.getSizes.
Very confusing names.
You can get the urls by requesting them in the extras fields in the appropriate get methods, listed as part of the documentation for each getter method.
For a sample search, use this form http://www.flickr.com/services/api/explore/flickr.photos.getRecent with the extras field set to:
url_sq, url_t, url_s, url_q, url_m, url_n, url_z, url_c, url_l, url_o
PS. I would include the direct links but am currently limited to one link per post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With