search_categories: Search for games or categories

View source: R/search.R

search_categoriesR Documentation

Search for games or categories

Description

Returns a list of games or categories that match the query via name either entirely or partially.

Usage

search_categories(query = NULL, first = NULL, after = NULL, clean_json = TRUE)

Arguments

query

A character. URL encoded search query.

first

A numeric. Maximum number of objects to return. Maximum: 100. Default: 20.

after

Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.

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 search categories data.

References

https://dev.twitch.tv/docs/api/reference#search-categories

See Also

Other Search: search_channels()

Examples

## Not run: 
library(twitchr)

twitch_auth()

search_results <- search_channels("fort")

## End(Not run)

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