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

Ziyad Arfan
Ziyad Arfan
5,415 Points

No. of results returned

Why is the request returning only 20 results? Are we setting the number somewhere? Or is it an API limitation? Please help me out.

1 Answer

Steven Parker
Steven Parker
231,236 Points

This particular service provides 20 responses per request. They have other services where you can request a specific number of responses, but they all have an upper limit.

Ziyad Arfan
Ziyad Arfan
5,415 Points

Hi, Steven. I really appreciate you taking out time to answer the question. Coming to the problem at hand, could you be a little more specific? What is the particular service being used here?

Steven Parker
Steven Parker
231,236 Points

The example uses the Flickr "public feed" service. It is one of several they group under the title "App Garden".

See the Flickr API Documentation for details.