Classic APIs
ClassicUsersApi
usersInfoFromNames

usersInfoFromNames

Gets information about multiple users from their usernames.

Parameters

NameTypeDescription
usernamesArrayNonEmptyIfConstThe usernames 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.usersInfoFromNames({ usernames: ["MightyPart"] }); 

Example Data

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

Endpoint

POST /v1/usernames/users