igdb_games: IGDB Games

Description Usage Arguments See Also Examples

View source: R/igdb_games.R

Description

Search for a list of games from the IGDB API.

Usage

1
2
3
igdb_games(search = NULL, id = NULL, n = 50, limit = 50,
  scroll = FALSE, filter = NULL, fields = NULL, order = NULL,
  api_key = igdb_key(), ...)

Arguments

search

a string with a keyword or title.

id

a vector containing game ids.

n

maximum number of results to return.

limit

maximum number of results per page.

scroll

an alternative method for retrieving multiple pages of results.

filter

a string that limits the kinds of results returned.

fields

a vector of fields to retrieve. NULL returns a data.frame with all available fields that contain data.

order

a string defining how results are sorted.

api_key

the IGDB api key.

...

include extra url arguments (e.g. expander).

See Also

IGDB API

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Search for the game Bioshock, ordering by the release date.
bioshock <- igdb_games(
  search = "bioshock",
  order = "first_release_date:asc"
)

## End(Not run)

jonathande4/igdb documentation built on May 22, 2019, 1:41 p.m.