Hey Everyone,
This morning a few of you may have noticed that the /market API call was no longer returning results. The reason for this was that there are now so many items in the Market that a single API call was pulling more out of the database than the API server could handle (you don't really want 6000 results in a single response...)
To fix this, I've had to make a fairly big change to the way this call works. As before, results are ordered with the newest items in the Market first but we are now limiting it to 1000 results per call. This means your existing apps should continue to work as normal but you will only get 1000 results. To get all results, there is a new parameter called 'page' which you can append to the query in order to view results for a separate page. I've also added a new response array named 'paging' which looks a bit like this:
"paging":{
"total_results":5274,
"results_per_page":1000,
"total_pages":6,
"current_page":1
},
As you can see, it will give you the total number of results, the number per page (as we may change this in future - do not rely on their being exactly 1000 per page), the total number of pages, and the current page.
I apologise that you'll need to make some changes to your application in order to support the multiple calls you need to make but this particular call is very database heavy and so has to now be broken up given the popularity of the Market. Hopefully, with your apps showing the latest 1000 results, this shouldn't cause too many issues in the short term.
As ever, if you have any questions just let me know.
Ben