Classic APIs
ClassicUsersApi
usersInfoFromIds

usersInfoFromIds

Gets information about multiple users from their ids.

Parameters

NameTypeDescription
userIdsArrayNonEmptyIfConstThe ids of the users to get info about.
excludeBannedUsers?booleanDictates if info about banned users should be excluded from the returned data. (defaults to false).

Example

const { data: usersInfo } = await ClassicUsersApi.usersInfoFromIds({ userIds: [45348281] }); 

Example Data

{
  "45348281": {
    hasVerifiedBadge: false,
    name: "MightyPart",
    displayName: "MightyPart",
  },
} 

Endpoint

POST /v1/users