Retrieves 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")

Arguments

name

Name / Vanity ID of a user account, group or game hub. See details and examples.

type

Type of Steam name. profile returns the Steam ID of a user profile, group returns the ID of a public group and game_group returns the ID of a game's official game hub.

Value

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.

Details

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

Examples

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")
} # }