Is user_timeline 100% complete


#1

I’m trying to use user_timeline to get all tweets, earned retweets and earned mentions for a number of users.

Can you answer my queries:

  1. Is it complete? - i.e. are all 100% of tweets by the user returned?
  2. Does it require authentication? i.e. by me or by the user.
  3. What’s the best way to calculate earned retweets (retweets of a user’s content by their followers) and earned mentions (mentions of the user by another user)?

This is related to a previous question to which there has been no answer hence I suspect is not possible! https://twittercommunity.com/t/get-count-of-tweets-mentions-and-retweets-via-api/11556

Thanks

Toby


#2

You can certainly get a user’s Tweets via the user_timeline endpoint - per the documentation it is limited to the most recent 3,200 Tweets and requires paging. Other than that, there’s no limitation on the Tweets returned.

All Twitter APIs require authentication. In this case, any authenticated user can request any public user timeline, but only the “owner” can see a protected timeline, so you’d need to be authenticated as the owner to pull a protected one.

Retweet data and mentions are treated as “perspectival” attributes i.e. the numbers may differ depending on who the authenticating user is, blocks, mutes etc. These are not available via direct API calls, and in my experience most platforms that try to offer these tend to perform counting via the Streaming API to work out the values.


#3

Thanks very much indeed Andy, that’s a very clear and helpful explanation.


#4