TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

Classes

ApiReportedRequestChatMessageDroppedErrorConfigErrorHelixAdScheduleHelixBanHelixBanUserHelixBitsLeaderboardHelixBitsLeaderboardEntryHelixBlockedTermHelixChannelHelixChannelEditorHelixChannelEmoteHelixChannelFollowerHelixChannelReferenceHelixChannelSearchResultHelixCharityCampaignHelixCharityCampaignAmountHelixCharityCampaignDonationHelixChatBadgeSetHelixChatBadgeVersionHelixChatChatterHelixChatSettingsHelixCheermoteListHelixClipHelixContentClassificationLabelHelixCustomRewardHelixCustomRewardRedemptionHelixDropsEntitlementHelixEmoteHelixEmoteFromSetHelixEventSubConduitHelixEventSubConduitShardHelixEventSubSubscriptionHelixExtensionBitsProductHelixExtensionTransactionHelixFollowHelixFollowedChannelHelixGameHelixGoalHelixGoalApiHelixHypeTrainHelixHypeTrainAllTimeHighHelixHypeTrainContributionHelixHypeTrainSharedParticipantHelixHypeTrainStatusHelixInstalledExtensionHelixInstalledExtensionListHelixModeratedChannelHelixModeratorHelixPaginatedEventSubSubscriptionsRequestHelixPaginatedRequestHelixPaginatedRequestWithTotalHelixPaginatedScheduleSegmentRequestHelixPaginatedSubscriptionsRequestHelixPollHelixPollChoiceHelixPredictionHelixPredictionOutcomeHelixPredictorHelixPrivilegedChatSettingsHelixPrivilegedUserHelixRaidHelixScheduleHelixScheduleSegmentHelixSentChatMessageHelixSharedChatSessionHelixSharedChatSessionParticipantHelixShieldModeStatusHelixStreamHelixStreamMarkerHelixStreamMarkerWithVideoHelixSubscriptionHelixTeamHelixTeamWithUsersHelixUnbanRequestHelixUserHelixUserBlockHelixUserEmoteHelixUserExtensionHelixUserRelationHelixUserSubscriptionHelixVideoHelixWarningStreamNotLiveError

HelixHypeTrainApi

The Helix API methods that deal with Hype Trains.

Overview

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

Example

const api = new ApiClient({ authProvider });
const hypeTrainStatus = await api.hypeTrain.getHypeTrainStatusForBroadcaster('125328655');

Methods

getHypeTrainStatusForBroadcaster(broadcaster)

async

Gets the Hype Train status and statistics for the specified broadcaster.

ParameterTypeRequiredDefaultDescription
broadcaster
UserIdResolvable

A user ID or a user or channel object.

This is not a user name. Please use HelixUserApi#getUserByName to fetch a user object by name.

Aliased type: string | number | UserIdResolvableType

none

The broadcaster to fetch Hype Train info for.