usersInfoFromNames
Gets information about multiple users from their usernames.
Parameters
Name | Type | Description |
---|---|---|
usernames | ArrayNonEmptyIfConst | The usernames of the users to get info about. |
excludeBannedUsers? | boolean | Dictates 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