3

By default the /search method is supposed to return 30 results per page, but it's returning 31. I only tested a few other values for pagesize but it looks like it always returns one extra result.

In case it makes a difference, I was using the tagged parameter to search by. Here's an example:

http://api.stackoverflow.com/0.8/search?tagged=java&pagesize=1

Also, it doesn't seem to matter whether you provide an API key or not.

  • 1
    Ah. The classic "off by one" error... :) – Nathan Osman May 28 '10 at 1:24
  • 3
    Bill, you are doing lots of testing. You must be working on something good!! ;) – jjnguy May 28 '10 at 2:04
  • This will be fixed in next code push. Nice catch. – Kevin Montrose May 28 '10 at 2:05
  • @Justin: Let's hope not - after all, it's everyone for himself in this contest. – Nathan Osman May 28 '10 at 3:59
  • 3
    @George: community first! – Maxim Zaslavsky May 28 '10 at 5:11
  • @Maxim: Well... ya... but who doesn't want to win? – Nathan Osman May 28 '10 at 6:55
2

This is now fixed.

  • it is supposed to be worked already? I am getting 500 Internal Server Error at the moment. – YOU May 28 '10 at 6:11
  • @S.Mark - No Key is broken at the moment. It should be fixed momentarily. – Kevin Montrose May 28 '10 at 6:26
  • Ah ok, now looks fixed in rev "2010.5.27.4", thanks. – YOU May 28 '10 at 6:36

You must log in to answer this question.

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