Michael Wang
Michael Wang

Reputation: 45

Get all followers of a feed

From my understanding, we can use the following API to get all the followers of a feed:

List<FeedFollow> followersPaged = feed.getFollowers(filter);

It supports passing in a FeedFilter, where the limit parameter has a maximum value of 100 and offset has a maximum value of 400.

Does that mean that if a feed is followed by more than 500 feeds, I can only get the first 500 followers (max offset of 400 with max limit of 100)?

Is there a way to get all the followers of a feed that has more than 500 followers?

Additionally, is there is a way to check if a specific feed is following another feed? For example, if feed A has 600 followers and feed B is following 600 feeds, is there a way to check if feed B is following feed A?

Upvotes: 1

Views: 154

Answers (1)

Dwight Gunning
Dwight Gunning

Reputation: 2525

You're correct in your understanding that the API only allows up to 500 followers to be retrieved.

In addition to REST interface documentation referenced by @shmosel, you may like to check the relevant section on Reading Feed Followers in the Java documentation.

At this point there is no way to retrieve the full set of followers via the API.

To your second question, although the result set is limited to 500 feeds, it is possible to check if a set of specific feeds follow a given feed. See the filter parameter in the Reading Followed Feeds section of the docs.

Upvotes: 1

Related Questions