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

Classes

ApiClientBadgesApiBitsApiChannelChannelApiChannelFollowChannelPlaceholderChannelSubscriptionChatApiChatBadgeListChatBadgeSetChatBadgeVersionChatEmoteChatEmoteListChattersListCheermoteListConfigErrorCreatedVideoEmoteSetListHelixApiGroupHelixBanHelixBanEventHelixBitsApiHelixBitsLeaderboardHelixBitsLeaderboardEntryHelixChannelHelixChannelApiHelixChannelEditorHelixChannelEmoteHelixChannelPointsApiHelixChannelSearchResultHelixChatApiHelixChatBadgeSetHelixChatBadgeVersionHelixCheermoteListHelixClipHelixClipApiHelixCustomRewardHelixCustomRewardRedemptionHelixEmoteHelixEmoteFromSetHelixEventSubApiHelixEventSubSubscriptionHelixExtensionsApiHelixExtensionTransactionHelixFollowHelixGameHelixGameApiHelixHypeTrainApiHelixHypeTrainContributionHelixHypeTrainEventHelixInstalledExtensionHelixInstalledExtensionListHelixModerationApiHelixModeratorHelixModeratorEventHelixPaginatedRequestHelixPaginatedRequestWithTotalHelixPaginatedScheduleSegmentRequestHelixPollHelixPollApiHelixPollChoiceHelixPredictionHelixPredictionApiHelixPredictionOutcomeHelixPredictorHelixPrivilegedUserHelixScheduleHelixScheduleApiHelixScheduleSegmentHelixSearchApiHelixStreamHelixStreamApiHelixStreamMarkerHelixStreamMarkerWithVideoHelixSubscriptionHelixSubscriptionApiHelixSubscriptionEventHelixTagHelixTagApiHelixTeamHelixTeamApiHelixTeamWithUsersHelixUserHelixUserApiHelixUserBlockHelixUserExtensionHelixUserRelationHelixUserSubscriptionHelixVideoHelixVideoApiHelixWebHooksApiHelixWebHookSubscriptionKrakenApiGroupNoSubscriptionProgramErrorPrivilegedChannelPrivilegedUserSearchApiStreamStreamApiStreamNotLiveErrorSubscriptionTeamTeamApiTeamWithUsersUnsupportedApiUserUserApiUserBlockUserChatInfoUserFollowUserSubscriptionVideoVideoApi

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

deleteVideosByIds(ids)

async

Deletes videos by its IDs.

ParameterTypeRequiredDefaultDescription
idsArray<string>none

The IDs of the videos to delete.

Return type: void

getVideoById(id)

async

Retrieves the video data for the given video ID.

ParameterTypeRequiredDefaultDescription
idstringnone

The video ID you want to look up.

Return type: HelixVideo | null

getVideosByGame(gameId, filter)

async

Retrieves the videos of the given game.

ParameterTypeRequiredDefaultDescription
gameIdstringnone

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.

ParameterTypeRequiredDefaultDescription
gameIdstringnone

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.

ParameterTypeRequiredDefaultDescription
idsstring | Array<string>none

The video IDs you want to look up.

Return type: Array<HelixVideo>

getVideosByUser(user, filter)

async

Retrieves the videos of the given user.

ParameterTypeRequiredDefaultDescription
userUserIdResolvablenone

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.

ParameterTypeRequiredDefaultDescription
userUserIdResolvablenone

The user you want to retrieve videos from.

filterHelixVideoFilter{}

Additional filters for the result set.

Return type: HelixPaginatedRequest<HelixVideoData, HelixVideo>