2
votes

Is there a Twitter API version 1.1 call that would provide the total number of friends a user is following?

The GET Friends/ids is the closest I found, however, it provides a list of all a user friend ids, not a total amount.

https://api.twitter.com/1.1/friends/ids.json?cursor=-1&screen_name=twitterapi&count=5000

1

1 Answers

6
votes

Yes. If you use the users/show endpoint of the v1.1 API you can retrieve information about a particular user.

One of the fields that is returned is called friends_count - this is the value you are looking for.

Full details here: https://dev.twitter.com/docs/api/1.1/get/users/show