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

HelixVideoApi

The Helix API methods that deal with videos.

Overview

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

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const { data: videos } = await api.helix.videos.getVideosByUser('125328655');

Methods

getVideoById(id)

async

Retrieves the video data for the given video ID.

ParameterTypeDescription
idstring

The video ID you want to look up.

Return type: HelixVideo | null

getVideosByGame(gameId, filter)

async

Retrieves the videos of the given game.

ParameterTypeDescription
gameIdstring

The game you want to retrieve videos from.

filterHelixVideoFilter

Additional filters for the result set.

getVideosByGamePaginated(gameId, filter)

Creates a paginator for videos of the given game.

ParameterTypeDescription
gameIdstring

The game you want to retrieve videos from.

filterHelixVideoFilter

Additional filters for the result set.

Return type: HelixPaginatedRequest<HelixVideoData, HelixVideo>

getVideosByIds(ids)

async

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

ParameterTypeDescription
idsstring | Array<string>

The video IDs you want to look up.

Return type: Array<HelixVideo>

getVideosByUser(user, filter)

async

Retrieves the videos of the given user.

ParameterTypeDescription
userUserIdResolvable

The user you want to retrieve videos from.

filterHelixPaginatedVideoFilter

Additional filters for the result set.

getVideosByUserPaginated(user, filter)

Creates a paginator for videos of the given user.

ParameterTypeDescription
userUserIdResolvable

The user you want to retrieve videos from.

filterHelixVideoFilter

Additional filters for the result set.

Return type: HelixPaginatedRequest<HelixVideoData, HelixVideo>