Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list people you are following on twitter

Tags:

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?

like image 534
Tyilo Avatar asked Aug 06 '11 15:08

Tyilo


2 Answers

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

like image 91
Evan Avatar answered Oct 23 '22 05:10

Evan


You could use this:

https://api.twitter.com/1/friends.json?screen_name=bitboxer

that way you don't have to do two calls for id and than for details.

like image 45
bitboxer Avatar answered Oct 23 '22 07:10

bitboxer