How to get the network members (followees and followers) of a user with API 2.0?

23 views
Skip to first unread message

Jing Peng

unread,
Mar 23, 2012, 3:46:34 PM3/23/12
to digga...@googlegroups.com
Hi Dave,

Is there any way that I can get the followees and followers of a digg user without crawling his profile page using API 2.0? 

In API 1.0, we can do so through the ListUsers endpoint http://apidoc.digg.com/w/page/17759009/ListUsers. Specifically


However, both API are not well-supported now. The returned number of users is always less than the count I specified. 

For example, if I want 100, if returns 95, and if I want 90, it returns 85 users. 

This makes it very difficult to get the complete list of users through paging (by setting offset) : http://services.digg.com/user/kevinrose/friends?type=json&count=100&offset=0

If offset is 0 and count is 100, I am supposed to get the most recent 100 users, but it actually only returns the most recent 95.

When I set offset to 1, I am supposed to get the most recent 101~200 users, but it again only returns 101~195.

In this sense, I cannot get the 96~100 and 196~200 except I change the count dynamically. But you know, it doesn't make sense to do this.


In addition, many important elements are also missed in the returned results, such as the timestamp when a user following the target user, the profile views of a followee/followers.

I mention these elements because they were there when API 1.0 was still in work.


I am really looking forward to seeing the counterparts of both endpoints in API 2.0.

Thanks,
Jing


Reply all
Reply to author
Forward
0 new messages