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'm having a problem returning a list of users questions within a given timespan. I understand that the documentation ( http://api.stackoverflow.com/0.8/help/method?method=users/{id}/questions ) that fromDate and toDate parameters are filtering on the creation_date parameter, but when I make the following call:

http://api.stackoverflow.com/0.8/users/66716/questions/?key={MyApiKey}&fromdate=1276770201&todate=1276770437&sort=activity&order=desc&type=jsontext

I'm getting items back that are before my fromdate, such as "creation_date": 1257388234

Anyone have any ideas about what am I doing wrong?

Thanks!

share|improve this question
    
You're not doing anything wrong, this is a bug. Will update when fixed. –  Kevin Montrose Jun 17 '10 at 14:48
1  
I know I'm splitting hairs, but with sort=activity you should be looking at the last_activity_date. It's out of range too, so this is a real bug. I just wasn't sure if you were aware of this and you simply copy/pasted the wrong field from the results. –  Bill the Lizard Jun 17 '10 at 22:02
    
@Bill, Thanks, I wasn't aware of this. By my read, the docs imply that the sort field is for the order of the records, not which field the method filters on. May need to update the docs too. –  Peter Mourfield Jun 17 '10 at 23:36
    
I think I was the one reading the doc wrong. It's min and max that take sort into account, not fromdate and todate. Please disregard my comment above. –  Bill the Lizard Jun 18 '10 at 2:26
    
@Bill, no worries. Also, it looks like this bug is fixed now! –  Peter Mourfield Jun 18 '10 at 14:58
add comment

1 Answer 1

up vote 1 down vote accepted

This should be fixed now.

share|improve this answer
2  
Thanks! It's working great! –  Peter Mourfield Jun 20 '10 at 1:13
add comment

You must log in to answer this question.

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