This vignette covers how to create your own Steam API key, to be able to use the
CSGo package to pull data from the steam API.
The very first step to get your own Steam API credentials is to have an Steam Account. To do that you need to access this link, and fill the requested information.
Now that you are a Steam member, and already spend more than 5.00 USD in the store you should be able to request your own Steam API Key. Enter here and sign in with your Steam Account Name and Password.
If everything went well you should see an screen as bellow with your own Steam Web API Key.
Now that you already have your Steam API Key you should be able to use any function in the
Try to run it filling your own API key:
library(CSGo) <- csgo_api_profile(api_key = 'your_key', user_id = '76561198263364899')df
The second mandatory argument is the
user_id which represents the Steam ID. The Steam ID is the number OR name at the end the steam profile URL.
If the Steam Profile URL is https://steamcommunity.com/profiles/76561198263364899/ the user_id is 76561198263364899.
If the Steam Profile URL is https://steamcommunity.com/id/generalcapivara/ the user_id is generalcapivara.
IMPORTANT: The steam profile should have the “Public” status for you be able to get specific information like Achievements and Statistics.
library(CSGo) <- csgo_api_profile(api_key = 'your_key', user_id = '76561198263364899') df1 <- csgo_api_profile(api_key = 'your_key', user_id = 'generalcapivara', name = TRUE)df2