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)

Arguments

id

A numeric. Game ID. At most 100 id values can be specified.

name

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.

clean_json

A logical. If TRUE, clean and tidy the data. If FALSE, return the result of httr::content.

Value

A tibble data frame of game data.

See also

Other Games: get_top_games()

Examples

if (FALSE) {
library(twitchr)

twitch_auth()

games <- get_games(name = c("Battletoads", "Stardew Valley"))
}