Classic APIs
ClassicFriendsApi
findFriends

findFriends

Gets a paginated list of all friends for the specified user.

Parameters

NameTypeDescription
userIdIdentifierThe id of the user to get friends for.
userSort?FriendsUserSortSpecifies how to sort the returned friends.
limit?numberThe number of results to be returned
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: friends } = await ClassicFriendsApi.userfollowersCount({ userId: 45348281 }); 

Example Data

[
  { id: 2820974191, hasVerifiedBadge: false },
  { id: 29992184, hasVerifiedBadge: true },
] 

Endpoint

GET /v1/users/{userId}/friends/find