I am working on a study of social media during the 2016 campaign. We would like to leverage Twitter’s Search API to get the bulk of our data.
We believe there will be over 100 millions tweets with the keywords and would like to create a script to make the API call and store the information. If we follow Twitter’s rate limits of 450 requests per 15 minutes, will Twitter limit the number of queries we submit from our API key? Would it be possible to use GET search/tweets and obtain ALL tweets and related data posted during 2016 that have the words Hillary and Trump?
2
Answers
Yes, Twitter will limit the number of queries submitted from your API key. It would be very difficult to obtain ALL of the tweets you are seeking to obtain.
Look into using their Streaming API.
No, Twitter will not limit you if you follow the rate limits. With Twitter4j, you could ask Twitter how many queries you have left.
No, it won’t be possible. As the documentation states:
So, you can only get recent tweets from the search API. Be careful too with the data beacuse it’s about relevance not completeness, from the same documentation:
If you really need older tweets you will have to get them from other sources like Gnip (you need to pay). Otherwise you will have to approach differently your problem.
If you have the names (or id’s) of all the users that you want to get info you could get the timelines from each user getting up to 3200 tweets.