Skip to main content
edited title
Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

The API /questions/{ids}/timeline path doesn't return several items that occurred after the fromdate parameter

Stackexchange api returning wrong result for timeline request The API /timeline path doesn't return several items that occurred after the fromdate parameter

I am developing an application in which I need to get all the question activity after some particular time say T. I am using the timeline api in the following wayAPI, like so:

URL-1 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com/questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com

fromdate:1384705610
site:stackoverflow.com

URL-2 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384700712&site=stackoverflow.coml But it returns no comments! Even though running the query with a much earlier date, EG:

fromdate:1384700712
site:stackoverflow.com

/questions/20032212/timeline?fromdate=1384700712&site=stackoverflow.com

In response of Request2, I am gettingshows a comment with creation_date asa creation_date of 1384705710 -- which obviously is greater than fromdate i.e 1384705610 in Request1. If I understand correctly, I should have got this commentthe 1384705610 in response of Request1 as wellmy original request.

Can somebody putshed some light on this behavior  ?

And What
What is the best way to get question activity that occurs after a certain time T ?

Stackexchange api returning wrong result for timeline request

I am developing an application in which I need to get all the activity after some particular time say T. I am using timeline api in the following way:

URL-1 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com

fromdate:1384705610
site:stackoverflow.com

URL-2 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384700712&site=stackoverflow.coml

fromdate:1384700712
site:stackoverflow.com

In response of Request2, I am getting a comment with creation_date as 1384705710 which obviously is greater than fromdate i.e 1384705610 in Request1. If I understand correctly, I should have got this comment in response of Request1 as well.

Can somebody put some light on this behavior  ?

And What is the best way to get question activity after certain time T ?

The API /timeline path doesn't return several items that occurred after the fromdate parameter

I need to get all the question activity after some particular time. I am using the timeline API, like so:

/questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com

But it returns no comments! Even though running the query with a much earlier date, EG:

/questions/20032212/timeline?fromdate=1384700712&site=stackoverflow.com

shows a comment with a creation_date of 1384705710 -- which obviously is greater than the 1384705610 in my original request.

Can somebody shed some light on this behavior?
What is the best way to get question activity that occurs after a certain time?

Post Migrated Here from stackoverflow.com (revisions)
Source Link
Sachin Jain
  • 903
  • 8
  • 17

Stackexchange api returning wrong result for timeline request

I am developing an application in which I need to get all the activity after some particular time say T. I am using timeline api in the following way:

URL-1 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com

fromdate:1384705610
site:stackoverflow.com

URL-2 https://api.stackexchange.com/questions/20032212/timeline?fromdate=1384700712&site=stackoverflow.coml

fromdate:1384700712
site:stackoverflow.com

In response of Request2, I am getting a comment with creation_date as 1384705710 which obviously is greater than fromdate i.e 1384705610 in Request1. If I understand correctly, I should have got this comment in response of Request1 as well.

Can somebody put some light on this behavior ?

And What is the best way to get question activity after certain time T ?