The 1.1 API help text for search says that the pagesize
parameter can go up to 100. Indeed, passing a value up to 100 returns some results, while passing pagesize=101
yields an HTTP 400 status (Bad Request
). However, only up to 30 results are actually returned per page even if pagesize=100
(e.g. http://api.stackoverflow.com/1.1/search?tagged=c&pagesize=100).
1 Answer
This has been fixed.
There was a bug with paging results coming from Lucene (which serves most, but not all, /search
requests at this time).
-
1Weirdly, api.stackoverflow.com/1.1/search?tagged=c&pagesize=100 returns only 99 questions. Going down, api.stackoverflow.com/1.1/search?tagged=c&pagesize=10 returns only the same 9 questions as api.stackoverflow.com/1.1/search?tagged=c&pagesize=9 . Is this by design (I can think of legitimate reasons such as a deleted question)? This makes me wonder how to get all the results of a search. Commented Feb 28, 2011 at 19:40
pagesize
property is set to 100, only 30 results are returned.