Classic APIs
ClassicFriendsApi
friendsList

friendsList

Gets friends for a specified user.

Parameters

NameTypeDescription
userIdIdentifierThe id of the user to get friends for.
userSort?FriendsUserSortSpecifies how to sort the returned friends.

Example

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

Example Data

[
  {
    isOnline: true,
    presenceType: 1,
    isDeleted: false,
    friendFrequentScore: 0,
    friendFrequentRank: 1,
    hasVerifiedBadge: false,
    description: null,
    created: "0001-01-01T05:52:00Z",
    isBanned: false,
    externalAppDisplayName: null,
    id: 1999518862,
    name: "Ipsum",
    displayName: "Lorem",
  },
] 

Endpoint

GET /v1/users/{userId}/friends