Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
rydavim
18,813 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
18,813 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