How to get over 20 results using the Twitter Search API

I use the Twitter Search API to get tweets for specific search terms from Twitter. There seems to be a limit of 20 tweets per result or some sort of date limit.

Does anyone know how to get more results?

+5
source share
4 answers

A search on Twitter starts only after 5-7 days or 1,500 tweets, whichever comes first. The search API is the same. Any tweets other than this are not available using any known method. They have Twitter, but they are not. If you know in advance that you will need all the tweets for some keywords or from some users, you need to use the streaming API to collect them in advance and save them in the database. You can then search your database anytime in the future to get all the tweets that you have already saved.

+12
source

1. Getting the first 1,500 tweets

GET search API ( , 2011-07-09 10:06), , "page" "RPP" ( ), 1500 , 6-9 .

2.

, 1. , "max_id" GET (. "max_id" ). , , , 1. , , 6-9 .

!

+8

Adam Green is dead, 1,500 tweets or 7 days is all you get with the search API. However, you can get more than 20 at a time by passing the "rpp" parameter. Values ​​for rpp must be between 1 and 1500.

For example: search.twitter.com/search.json?&1=facebook&rpp=100

Do not forget to read the api stream as well ... I ran into speed limits with api search and it requires archiving your application differently.

http://af-design.com/blog/2010/12/17/reading-the-twitter-stream-api-with-php/

0
source

All Articles