Gets game information by game ID or name. For a query to be valid, name
and/or id
must be specified.
get_games(id = NULL, name = NULL, clean_json = TRUE)
A numeric. Game ID. At most 100 id values can be specified.
A numeric. Game name. The name must be an exact match. For example, “Pokemon” will not return a list of Pokemon games; instead, query any specific Pokemon games in which you are interested. At most 100 name values can be specified.
A logical. If TRUE
, clean and tidy the data. If FALSE
, return the result of httr::content
.
A tibble data frame of game data.
Other Games:
get_top_games()
if (FALSE) {
library(twitchr)
twitch_auth()
games <- get_games(name = c("Battletoads", "Stardew Valley"))
}