Retrieves information on Steam's country, region, and city codes.

query_locations queries the storefront API and can drill down all Steam location levels, while get_country_list can only provide information on the country level.

query_locations(country = NULL, region = NULL)

get_country_list(language = "english")

Arguments

country

ISO-2 country code. If specified, returns information on regions, otherwise countries.

region

Region code within a country specified in country. Country must not be NULL if region is specified. If specified, returns information on cities, otherwise on regions.

Value

query_locations

A dataframe with country code, name, and whether the location can be further subdivided into states or cities.

get_country_list

A dataframe containing country code and country name.

Examples

if (FALSE) { # \dontrun{
# get country codes
query_locations()

# get region codes of Germany
query_locations(country = "DE")

# get city codes of Baden-Wurttemberg, Germany
query_locations(country = "DE", region = "01")

# get localized country names
get_country_list(language = "german")
} # }