get_games: Get games

View source: R/games.R

get_gamesR Documentation

Get games

Description

Gets game information by game ID or name. For a query to be valid, name and/or id must be specified.

Usage

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.

References

https://dev.twitch.tv/docs/api/reference#get-games

See Also

Other Games: get_top_games()

Examples

## Not run: 
library(twitchr)

twitch_auth()

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

## End(Not run)

KoderKow/twitchr documentation built on Aug. 11, 2022, 8:56 p.m.