TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixSearchApi

The Helix API methods that run searches.

Overview

Can be accessed using client.search on an ApiClient instance.

Example

const api = new ApiClient({ authProvider });
const channels = await api.search.searchChannels('pear');

Methods

searchCategories(query, pagination)

async

Search categories/games for an exact or partial match.

ParameterTypeRequiredDefaultDescription
querystringnone

The search term.

paginationHelixForwardPaginationnonesee below
pagination.afterstringnone

A cursor to get the following page of.

pagination.limitnumbernone

The number of results per page.

searchCategoriesPaginated(query)

Creates a paginator for a category/game search.

ParameterTypeRequiredDefaultDescription
querystringnone

The search term.

Return type: HelixPaginatedRequest<HelixGameData, HelixGame>

searchChannels(query, filter)

async

Search channels for an exact or partial match.

ParameterTypeRequiredDefaultDescription
querystringnone

The search term.

filterHelixPaginatedChannelSearchFilter<complex>see below
filter.afterstringnone

A cursor to get the following page of.

filter.limitnumbernone

The number of results per page.

filter.liveOnlybooleannone

Include only channels that are currently live.

searchChannelsPaginated(query, filter)

Creates a paginator for a channel search.

ParameterTypeRequiredDefaultDescription
querystringnone

The search term.

filterHelixChannelSearchFilter<complex>see below
filter.liveOnlybooleannone

Include only channels that are currently live.

Return type: HelixPaginatedRequest<HelixChannelSearchResultData, HelixChannelSearchResult>