Classic APIs
ClassicUsersApi
usernameHistory

usernameHistory

Gets a users previous usernames.

Parameters

NameTypeDescription
userIdIdentifierThe id of the user to get the username history for.
limit?10|25|50|100The number of results to be returned.
sortOrder?SortOrderThe order that the results are sorted in.
cursor?stringThe paging cursor for the previous or next page.

Example

const { data: previousUsernames } = await ClassicUsersApi.usernameHistory({ userId: 45348281 }); 

Example Data

["NamelessGuy2005", "parrrty"] 

Endpoint

GET /v1/users/{userId}/username-history