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

Classes

ApiClientBadgesApiBitsApiChannelChannelApiChannelFollowChannelPlaceholderChannelSubscriptionChatApiChatBadgeListChatBadgeSetChatBadgeVersionChatEmoteChatEmoteListChattersListCheermoteListConfigErrorCreatedVideoEmoteSetListHelixApiGroupHelixBanHelixBanEventHelixBitsApiHelixBitsLeaderboardHelixBitsLeaderboardEntryHelixChannelHelixChannelApiHelixChannelEditorHelixChannelEmoteHelixChannelPointsApiHelixChannelSearchResultHelixChatApiHelixChatBadgeSetHelixChatBadgeVersionHelixCheermoteListHelixClipHelixClipApiHelixCustomRewardHelixCustomRewardRedemptionHelixEmoteHelixEmoteFromSetHelixEventSubApiHelixEventSubSubscriptionHelixExtensionsApiHelixExtensionTransactionHelixFollowHelixGameHelixGameApiHelixHypeTrainApiHelixHypeTrainContributionHelixHypeTrainEventHelixInstalledExtensionHelixInstalledExtensionListHelixModerationApiHelixModeratorHelixModeratorEventHelixPaginatedRequestHelixPaginatedRequestWithTotalHelixPaginatedScheduleSegmentRequestHelixPollHelixPollApiHelixPollChoiceHelixPredictionHelixPredictionApiHelixPredictionOutcomeHelixPredictorHelixPrivilegedUserHelixScheduleHelixScheduleApiHelixScheduleSegmentHelixSearchApiHelixStreamHelixStreamApiHelixStreamMarkerHelixStreamMarkerWithVideoHelixSubscriptionHelixSubscriptionApiHelixSubscriptionEventHelixTagHelixTagApiHelixTeamHelixTeamApiHelixTeamWithUsersHelixUserHelixUserApiHelixUserBlockHelixUserExtensionHelixUserRelationHelixUserSubscriptionHelixVideoHelixVideoApiHelixWebHooksApiHelixWebHookSubscriptionKrakenApiGroupNoSubscriptionProgramErrorPrivilegedChannelPrivilegedUserSearchApiStreamStreamApiStreamNotLiveErrorSubscriptionTeamTeamApiTeamWithUsersUnsupportedApiUserUserApiUserBlockUserChatInfoUserFollowUserSubscriptionVideoVideoApi

StreamApi

The API methods that deal with streams.

Overview

Can be accessed using client.kraken.streams on an ApiClient instance.

Example

const api = new ApiClient(new StaticAuthProvider(clientId, accessToken));
const stream = await api.kraken.streams.getStreamByChannel('125328655');

Methods

getAllLiveStreams(page, limit)

async

Retrieves a list of all live streams.

ParameterTypeRequiredDefaultDescription
pagenumbernone

The result page you want to retrieve.

limitnumbernone

The number of results you want to retrieve.

Return type: Array<Stream>

getAllStreams(page, limit)

async

Retrieves a list of all streams.

ParameterTypeRequiredDefaultDescription
pagenumbernone

The result page you want to retrieve.

limitnumbernone

The number of results you want to retrieve.

Return type: Array<Stream>

getFollowedStreams(type, page, limit)

async

Retrieves a list of all streams on channels the currently authenticated user is following.

ParameterTypeRequiredDefaultDescription
typeStreamTypenone

Show only streams of a certain type.

pagenumbernone

The result page you want to retrieve.

limitnumber25

The number of results you want to retrieve.

Return type: Array<Stream>

getStreamByChannel(channel)

async

Retrieves the current stream on the given channel.

ParameterTypeRequiredDefaultDescription
channelUserIdResolvablenone
Return type: Stream | null

getStreams(channels, game, languageCode, type, page, limit)

async

Retrieves a list of streams.

ParameterTypeRequiredDefaultDescription
channelsstring | Array<string>none

A channel ID or a list thereof.

gamestringnone

Show only streams playing a certain game.

languageCodestringnone

Show only streams in a certain language.

typeStreamTypenone

Show only streams of a certain type.

pagenumbernone

The result page you want to retrieve.

limitnumber25

The number of results you want to retrieve.

Return type: Array<Stream>