0

We are running into an issue with a small percentage of our users. We iterate through a users tweets, making a call to user_timeline, count=200 and max_id of the previous iterations last post id. Most of the time it works great up to 3200, but there are some cases where Twitter stops responding with the full 200 or any tweets at all.

Here's one case, we have a user with 680 tweets, so we iterate through his timeline 4 times, count=200 each time.

  • First iteration we get 200 tweets
  • Second iteration we get 199 tweets
  • Third iteration we get 100 tweets
  • Fourth iteration we get 0

The last tweet from the third iteration has a date of 16 Oct 2012, but I can manually (in a browser) find older tweets, e.g. 31 Jul 2011.

Is there some issue we're unaware of? 3200 max tweets but only up to a certain date?

s1rc
  • 1
  • 3

1 Answers1

0

From the Twitter API docs:

The value of count is best thought of as a limit to the number of Tweets to return because suspended or deleted content is removed after the count has been applied.

Unfortunately the count isn't actually the amount of tweets you will retrieve but the maximum you could retrieve excluding certain content.

judges119
  • 36
  • 1
  • 3
  • I did read that before and we see that often. I’m more confused because there are tweets belonging to this user that are still on the users timeline (on twitter.com) that are not deleted or suspended. – s1rc Feb 08 '19 at 02:32
  • As an example for one user: - The API returns this RT as the last tweet: https://twitter.com/DTSavage_2/status/258393126174076928 - This is an older tweet from twitter.com: https://twitter.com/DTSavage_2/status/97832199885307904 – s1rc Feb 08 '19 at 02:40