What is the Flickr API for downloading a picture or URL to the picture
Asked Answered
M

3

9

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?

Muncey answered 2/2, 2013 at 7:54 Comment(0)
M
16

Oh I got the answer.

The API function is called flickr.photos.getSizes.

Very confusing names.

Muncey answered 2/2, 2013 at 8:29 Comment(0)
T
6

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.

Tricotine answered 20/3, 2013 at 17:51 Comment(1)
What does url_m do?Environs
S
1

Use the flickr.photos.getSizes API. When you call the method, you will get the link of that picture ( avaible with different sizes)

Use that link to download.

Saintmihiel answered 24/6, 2015 at 1:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.