resolve_vanity.RdRetrieves the Steam ID64 of a user profile, group or game hub based on vanity IDs.
Retrieves the Steam ID64 of a user profile, group or game hub based on vanity IDs.
resolve_vanity(name, type = "profile")
resolve_vanity(name, type = "profile")A length-1 character vector containing the Steam ID corresponding to the input name.
A length-1 character vector containing the Steam ID corresponding to the input name.
There are various way of retrieving vanity IDs depending on the type of vanity URL type. The vanity URL of a Steam user is the account name (not the display name). It can be retrieved by inspecting the profile URL:
https://steamcommunity.com/id/{vanity_id}/Vanity IDs of groups can be retrieved in a similar way:
https://steamcommunity.com/groups/{vanity_id}/Vanity IDs of game hubs are not easily locatable as game hubs are
closely linked to store pages. They can be found by inspecting the
source code of a game page and searching for VANITY_ID. Vanity IDs
of game hubs are usually the application ID or an abbreviation of the
original title, e.g. dota2 for DOTA 2, TF2 for Team Fortress 2
or simply 70 for Half-Life
There are various way of retrieving vanity IDs depending on the type of vanity URL type. The vanity URL of a Steam user is the account name (not the display name). It can be retrieved by inspecting the profile URL:
https://steamcommunity.com/id/{vanity_id}/Vanity IDs of groups can be retrieved in a similar way:
https://steamcommunity.com/groups/{vanity_id}/Vanity IDs of game hubs are not easily locatable as game hubs are
closely linked to store pages. They can be found by inspecting the
source code of a game page and searching for VANITY_ID. Vanity IDs
of game hubs are usually the application ID or an abbreviation of the
original title, e.g. dota2 for DOTA 2, TF2 for Team Fortress 2
or simply 70 for Half-Life
if (FALSE) { # \dontrun{
# get user ID
resolve_vanity("gabelogannewell")
# get group ID
resolve_vanity("SteamDB", type = "group")
# get game hub ID
resolve_vanity("TF2", type = "game_group")
} # }
if (FALSE) { # \dontrun{
# get user ID
resolve_vanity("gabelogannewell")
# get group ID
resolve_vanity("SteamDB", type = "group")
# get game hub ID
resolve_vanity("TF2", type = "game_group")
} # }