Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
    
I can reproduce this. Although the pagesize property is set to 100, only 30 results are returned. – Nathan Osman Feb 27 '11 at 19:43
up vote 2 down vote accepted

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).

share|improve this answer
1  
Weirdly, 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. – Gilles Feb 28 '11 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .