This information is returned in the users profile information and can be
access from the API something like:

/1/users/show -- http://dev.twitter.com/doc/get/users/show
/1/users/lookup -- http://dev.twitter.com/doc/get/users/lookup

You could also request a users friends IDs using
/1/friends/ids -- http://dev.twitter.com/doc/get/friends/ids

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Wed, Feb 16, 2011 at 11:21 AM, HJ <hjenner...@gmail.com> wrote:

> I'm trying to get the number of friends for a user, but there doesn't
> seem to be a getFriendCount method in the API. Is something similar to
>
> http://weblogs.asp.net/wallym/archive/2009/03/20/twitter-api-get-a-list-of-your-friends-in-c.aspx
> - looping through all and counting the only way of doing this?
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to