Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter API: Search followers tweets

Tags:

twitter

Is there any way to search for a term within a user's followers' tweets only. Search API is global, apparently. I want to search only within the user's followers.

Is there a way of doing this. Even a hugely complex one will be appreciated.

like image 949
SoWhat Avatar asked Jul 10 '12 12:07

SoWhat


1 Answers

You can retrieve the IDs of the user's followers with GET http://api.twitter.com/1.1/followers/ids.json?screen_name=<username>. Each ID corresponding to a user, you can now download the tweets of each follower with GET http://api.twitter.com/1.1/statuses/user_timeline.json?user_id=<follower ID>. I recognize that it requires lots of requsets to the Twitter API (which are rate limited) but you cannot do better with this API.

like image 198
air-dex Avatar answered Oct 20 '22 12:10

air-dex