10

Is there a way to use the Twitter API to get a user's tweets for a specific time range?

It doesn't seem to be in statuses/user_timeline.

Tom Kincaid
  • 4,887
  • 6
  • 47
  • 72

1 Answers1

5

You can use the since and until operator.

https://api.twitter.com/1.1/statuses/user_timeline.json?include_entities=true&inc‌​lude_rts=true&screen_name=your_screen_name&since:2011-05-16&until:2011-08-16

But it will do you little good because tweets are searchable in a small time window. To get around this check out several resources,

Snapbird - https://github.com/remy/snapbird

and

20 ways of searching old tweets

Chamilyan
  • 9,347
  • 10
  • 38
  • 67