Hi, I am relatively new to Twitter API environment and I what to have one issue explained.

I have a set of people for which I have their twitter account name. For each person I want to have their tweets and their relationships with other people (such as following, followers, replies, likes, etc…).
I know that I can fetch tweets of a certain user as well as get a list of its following and followers via Twitter API.

My question is above which threshold I will need to pay for those data (== How many tweets I can fetch for free; for how many users I can get his followers/following). I tried to get this information in the docs but I have only found pricing for ‘Search Tweets’, which is not what I want to actually have. In the case of exceeding the Twitter API limits, what is the pricing for data acquired above this limit? How can I be sure that I will not be banned/blocked/restricted by Twitter (I need to have stable possibility to acquire those data)?

Are there any other limit about which I should be aware of (except for rate limit).

Regards :slight_smile:

You can do most of this for free, in fact - there is no paid way to get followers / following or likes. GET followers/ids | Docs | Twitter Developer Platform and https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids are the most efficient ways to get friends and followers.

Likes are going to be limited to the last 3200 or so GET favorites/list | Docs | Twitter Developer Platform (likes used to be called Favourites) - there is no way to get more unless you get an individual user to download their archive and give the data to you.

For any given account, you can fetch the last 3200 tweets they made - this sometimes covers the entire history of an account, beyond that you have to use Premium API Search API | Twitter API | Docs | Twitter Developer Platform this is the only paid API access you have.

1 Like

@IgorBrigadir
Thanks a lot for your answer!

One more question - so there is no limit for how many people I can get tweets/followers/following? I can extract last 3200 tweets of as many people as I can or there is a threshold?

The only limit is the Ratelimit on the endpoints themselves. I would watch out for very popular accounts, as there rate limits are low, and it may take you months if you get stuck on a very large account.

Oh, also - for tweets, there is the 3200 limit, individual rate limits on the endpoints and a 24 hour app level rate limit of 100,000 calls for GET statuses/user_timeline | Docs | Twitter Developer Platform in addition to the 15 minute ratelimits.

To manage rate limiting, keep an eye on the HTTP headers returned by the API: Rate limits | Docs | Twitter Developer Platform but the 24 hour limit is not included in the http headers, so you have to track that yourself and stop and resume appropriately.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.