Take the 2-minute tour ×
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.

I think I may have stumbled upon a bug in /search and I'll try to describe it as best as I can.

What works:

  • Create a /search query with the following parameters:

    • fromdate: 2012-01-24
    • order: desc
    • sort: creation
    • tagged: android

Alternatively, go to the following URL:

http://api.stackexchange.com/2.0/search?fromdate=1327363200&order=desc&sort=creation&tagged=android&site=stackoverflow

And you should see a bunch of Android related questions.

What does not work:

  • Create a /search query with the following parameters:

    • fromdate: 2012-01-24
    • todate: 2012-01-30
    • order: desc
    • sort: creation
    • tagged: android

Note that I've added the todate field in this query. The related URL is:

http://api.stackexchange.com/2.0/search?fromdate=1327363200&todate=1327881600&order=desc&sort=creation&tagged=android&site=stackoverflow

The last query, for whatever reason, does not return any results ("items": []). Is this a bug in the system or have I horribly misinterpreted the query parameters :)

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

fromdate and todate were being applied in the wrong part of the pipe for /search and /similar. This has been fixed.

Do be aware that fromdate and todate always apply to creation_date. If you're looking to apply limits to other sorts, you need to use min and max.

share|improve this answer
    
Thanks again Kevin, that took care of it. –  Marvin Pinto Jan 31 '12 at 19:36
add comment

You must log in to answer this question.

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