twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks
Welcome

HelixGameApi

The Helix API methods that deal with games.

Overview

Can be accessed using client.helix.games on an ApiClient instance.

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const game = await api.helix.games.getGameByName('Hearthstone');

Methods

getGameById(id)

async

Retrieves the game data for the given game ID.

ParameterTypeDescription
idstring

The game ID you want to look up.

Return type: HelixGame | null

getGameByName(name)

async

Retrieves the game data for the given game name.

ParameterTypeDescription
namestring

The game name you want to look up.

Return type: HelixGame | null

getGamesByIds(ids)

async

Retrieves the game data for the given list of game IDs.

ParameterTypeDescription
idsArray<string>

The game IDs you want to look up.

Return type: Array<HelixGame>

getGamesByNames(names)

async

Retrieves the game data for the given list of game names.

ParameterTypeDescription
namesArray<string>

The game names you want to look up.

Return type: Array<HelixGame>

getTopGames(pagination)

async

Retrieves a list of the most viewed games at the moment.

ParameterTypeDescription
paginationHelixPagination

Pagination info.

getTopGamesPaginated()

Creates a paginator for the most viewed games at the moment.