Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get more than 20 results with the Twitter Search API

Tags:

twitter

I'm using the Twitter Search API to retrieve tweets for specific search terms from Twitter. It seems however that there is a limit of 20 tweets per result or some kind of date limit.

Does anyone know of a way to get more results?

like image 462
2 revs Avatar asked Dec 16 '10 18:12

2 revs


People also ask

What is the limit of Twitter's search API?

The standard twitter search api (user auth) suggests a rate limit of 180 requests per rate limit window. Rate Limit Request rate limits at both minute and second granularity. The per minute rate limit is 60 requests per minute (30 with Sandox environment). Requests are also limited to 10 per second.

How do I stop the rate limit exceeded on Twitter?

try not to over use the refresh button - this will cost you 3 calls per click (All Tweets, Replies & DMs) UPDATE: try lowering the total % in the settings window, twitter API tab to around 60-70% - you'll get less frequent updates but you'll use less API.


1 Answers

The Twitter search only goes back 5 - 7 days, or 1,500 tweets, whichever comes first. The search API is the same. Any tweets beyond that are not available through any known method. Twitter has them, but there is no way to get them. If you know in advance that you will want all tweets for some keywords or from some users, you need to use the streaming API to collect them in advance and save them in a database. Then you can search your database any time in the future to get all the tweets you have already saved.

like image 58
Adam Green Avatar answered Dec 18 '22 23:12

Adam Green