Dev Photon
Dev Photon

Reputation: 21

Inconsistencies with Flickr API Search vs www.flickr.com

There is a sort of a discrepancy in searching via the API endpoint provided by Flickr and when you actually search in Flickr via their text box search. When searching for certain words like Jerry Brown using flickr.photos.search I get different set of results when compared to searching directly on flickr.com.

There are no additional parameters provided for the API End point apart from the *per_page* and the page option, which defaults to 1.

Upvotes: 2

Views: 870

Answers (1)

Nishant
Nishant

Reputation: 3005

This is the reason why it differs

  1. Flickr Search (flickr.com) - displays the search results by relevance.
  2. If NO Argument is specified to sort in the flickr.photos.search API. Then it defaults to Recent

Example

  1. http://www.flickr.com/search/?q=cat&f=hp
  2. http://www.flickr.com/services/api/explore/flickr.photos.search

    • Fill in the text = cat sort = relevance per_page = 1

    • You can verify the result by appropriately constructing the image URL as per http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg

Upvotes: 5

Related Questions