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

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.

ParameterTypeDescription
pagenumber

The result page you want to retrieve.

limitnumber

The number of results you want to retrieve.

Return type: Array<Stream>

getAllStreams(page, limit)

async

Retrieves a list of all streams.

ParameterTypeDescription
pagenumber

The result page you want to retrieve.

limitnumber

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.

ParameterTypeDescription
typeStreamType

Show only streams of a certain type.

pagenumber

The result page you want to retrieve.

limitnumber

The number of results you want to retrieve.

Return type: Array<Stream>

getStreamByChannel(channel)

async

Retrieves the current stream on the given channel.

ParameterTypeDescription
channelUserIdResolvable
Return type: Stream | null

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

async

Retrieves a list of streams.

ParameterTypeDescription
channelsstring | Array<string>

A channel ID or a list thereof.

gamestring

Show only streams playing a certain game.

languageCodestring

Show only streams in a certain language.

typeStreamType

Show only streams of a certain type.

pagenumber

The result page you want to retrieve.

limitnumber

The number of results you want to retrieve.

Return type: Array<Stream>