8

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?

Toby Allen
  • 10,997
  • 11
  • 73
  • 124
Harikrishnan
  • 3,664
  • 7
  • 48
  • 77

3 Answers3

15

Oh I got the answer.

The API function is called flickr.photos.getSizes.

Very confusing names.

Harikrishnan
  • 3,664
  • 7
  • 48
  • 77
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.

Chris Conover
  • 8,889
  • 5
  • 52
  • 68
0

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.

Cri_Nox
  • 19
  • 2