Is there anyways through which I can extract all tweets of an user? I want to extract all tweets of my organization starting from 2006 till date and perform sentiment analysis on year-wise manner to check how our organization is performing every-year.

1 Like

If it’s for an account you control, the best way is to use the Data download (which is currently disabled, but likely to return soon) and extract the IDs / tweet text from that. https://twitter.com/settings/your_twitter_data

The limit on timelines is the last 3200 tweets, but I’ve heard others encounter that GET statuses/user_timeline | Docs | Twitter Developer Platform will return all your tweets (more than the 3200 documented) if you own the access token (requesting your own tweets, not another user’s) so that might work for you.

Alternatively, the fullarchive is a very expensive way to do it- i wouldn’t recommend it at all, especially for a single account you own.

The limit of 3200 tweets, contains the replies to the tweets too?

No, it won’t contain any replies to the user. Only tweets from the user (which include retweets, and replies they made to others)

Thanks for your answer, I am looking for a way to retrieve the complete timeline including the replies received by the user as well as the hidden once, any suggestions?

If it’s your own account or an account that has authorized your app, Account Activity API | Twitter API | Docs | Twitter Developer Platform account activity api will return all the data you need.

If it’s for an arbitrary user, you will need to use the Search APIs Search Tweets introduction | Docs | Twitter Developer Platform with a broad query like from:user OR to:user

2 Likes