R client for accessing Steam’s REST API specifically for the Counter-Strike Global Offensive Game (CS Go) data. Check out the Steam documentation website for more information.
The goal of CSGo
is to provide an easy way to connect and pull data
from the Steam API specifically for the Counter-Strike Global Offensive
Game (CS Go).
The CSGo
package should be used in strict accordance with Steam Api
Terms of Use.
The CSGo
package still doesn’t have released on CRAN, but you can use
the development version from
GitHub with:
# install.packages("devtools")
devtools::install_github("adsoncostanzifilho/CSGo")
The first step to use the CSGo
package is to have your own credentials
(API key) to pull the CSGo data from the Steam API.
For more information about how to get your own API Key run in your R
vignette("auth", package = "CSGo")
.
Now that you already have your API Key you should be able to collect your own CSGo data as well as your friends’ data.
library(CSGo)
# to get my own statistics
my_stats <- get_stats_user(api_key = 'your_key',user_key = '76561198263364899')
# to get my the statistics of all my "public" friends
friends_stats <- get_stats_friends(api_key = 'your_key',user_key = '76561198263364899')
PS: Don’t worry, the function get_stats_friends
will only collect
the data of your friends with “Public” status.