Search code examples
twitter

Get list people you are following on twitter


IS it possible to something like this:

http://api.twitter.com/1/statuses/followers/xxxxxx.json

but instead of list of people following you, list of people you are following?


Solution

  • Looks like this is what you need:

    https://api.twitter.com/1.1/friends/ids.json?id=:screen_name_or_user_id
    

    https://dev.twitter.com/docs/api/1.1/get/friends/ids

    Once you have the list of ID's returned, you can look them up by passing them as a comma delimited list to another API call:

    http://api.twitter.com/1.1/users/lookup.json?user_id=[comma delimited list goes here]
    

    https://dev.twitter.com/docs/api/1.1/get/users/lookup