Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

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

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


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
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
up vote 1 down vote accepted

This should be fixed now.

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

You must log in to answer this question.

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