Hot answers tagged

6 votes

After successfully retrieving 180 pages, the API gracelessly, semi-silently, fails

Yes, this is a serious bug. You can replicate it from any browser using the code below. Every time I run it, it fetches 180 pages at an average rate of 5.51 calls per second. On the 181st call I get: ...
  • 12.7k
4 votes
Accepted

Limiting the number of items returned by a request?

Just set pagesize in the URL, like: https://api.stackexchange.com/2.2/tags?pagesize=10&order=desc&sort=popular&site=stackoverflow
  • 4,686
2 votes

Paging fails at 10K items for /search on any site but Stack Overflow

This was a search issue in elastic (max_result_window) that has now been tuned across the network. See, also, this related Q&A on Meta SE.
  • 2,194
1 vote
Accepted

How can I retrieve more than 25 pages from the Stack Exchange API v2.3?

Simply using an API key is enough to increase your quota from 300 to 10,000 per day, but it does not qualify as non-anonymous access. The maximum page number that will be returned for anonymous API ...
  • 5,624
1 vote
Accepted

The API is not returning a value that I know it should

The API results are paged, defaulting to 30 (base) records at a time. So you need to always check the has_more property and fetch additional pages, if needed. In your second query, it currently ...
  • 12.7k
1 vote
Accepted

Paging issue: is /users/{ids}/associated API route returning incomplete information?

No, this is not a bug. When paging, you must remember and then combine the results from all pages. So if you fetch: /2.2/users/1144996;6913068;6453670;1751488;73042;1840350/associated?page=1&...
  • 12.7k

Only top scored, non community-wiki answers of a minimum length are eligible