Search code examples
apitwitterlimit

How to get the follower count of my follower?


I want to know how many followers my followers have (so it's recursively).

The Problem is obviously the API limit.

  1. I read out my follower ids with http://api.twitter.com/1/followers/ids.json?screen_name=username
  2. I request http://twitter.com/users/show.xml?user_id=the_id, but if I got many followers, I quickly get blocked by API limitations.

Is there a way to bypass this? For example, would this work for Twitter users with more than 6000 (or even infinite?) followers, if I ask to authenticate with their twitter account? Or is there another API call which may perform more requests?


Solution

  • If you use statuses/followers for your self, and page thru the results.

    http://dev.twitter.com/doc/get/statuses/followers

    http://twitapi.com/explore/statuses-followers/

    This will give you information on 100 followers per api call. In that result amongst other things is each followers, follower and following count.

    6000 will only take 60 calls.

    As this needs to be processed while authenticated you will also get 300 api calls per user.

    Good luck.