JavaScript AJAX Basics (retiring) AJAX and APIs Stage 4 Challenge Answer

melissa brown
melissa brown
4,670 Points

How can i refine/improve the flickr search to make it more accurate?

I tried searching for corgi dogs, but all i got was some trucks and one random corgi dog. How can i improve the search so that when i actually type it corgi i get more pictures of the latest corgi dogs that are posted to flickr?

3 Answers

rydavim
MOD
rydavim
Treehouse Moderator 17,951 Points

What you're using to search are tags. Unfortunately, the user who uploaded the photo determines what tags they include. This makes it difficult to further filter results the way you're hoping.

Looking at the feed, I guess there is a toy manufacturer called Corgi that is returning results. Sorry. :(

melissa brown
melissa brown
4,670 Points

Is there a better way to use the tags? I was looking at this persons code what are they doing that makes their search results way better than the treehouse project. They also use instagram to search as well.

http://andrewcshield.com/flictagram/

rydavim
rydavim
Treehouse Moderator 17,951 Points

When I try to view that page, the photos I see are from Instagram only. The Flickr photos never load for me, I just get a loading circle animation for that section. So it may be that Instagram users use better tags, or their search api might work differently.

Can you confirm you are seeing Flickr photos, and not just Instagram ones?

melissa brown
melissa brown
4,670 Points

thanks im not sure. He has a flickr api in the code so it should be both. ill build one with only an instagram api and see if it works better. Thanks for the tip @rydvamin