TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixClip

A clip from a Twitch stream.

Overview

Properties

broadcasterDisplayName

Type: string

The display name of the broadcaster of the stream where the clip was created.

broadcasterId

Type: string

The user ID of the broadcaster of the stream where the clip was created.

creationDate

Type: Date

The date when the clip was created.

creatorDisplayName

Type: string

The display name of the creator of the clip.

creatorId

Type: string

The user ID of the creator of the clip.

duration

Type: number

The duration of the clip in seconds (up to 0.1 precision).

embedUrl

Type: string

The embed URL of the clip.

gameId

Type: string

The ID of the game that was being played when the clip was created.

id

Type: string

The clip ID.

isFeatured

Type: boolean

Whether the clip is featured.

language

Type: string

The language of the stream where the clip was created.

thumbnailUrl

Type: string

The URL of the thumbnail of the clip.

title

Type: string

The title of the clip.

url

Type: string

The URL of the clip.

videoId

Type: string

The ID of the video the clip is taken from.

views

Type: number

The number of views of the clip.

vodOffset

Type: number | null

The offset of the clip from the start of the corresponding VOD, in seconds.

This may be null if there is no VOD or if the clip is created from a live broadcast, in which case it may take a few minutes to associate with the VOD.

Methods

getBroadcaster()

async

Gets information about the broadcaster of the stream where the clip was created.

Return type: HelixUser

getCreator()

async

Gets information about the creator of the clip.

Return type: HelixUser

getGame()

async

Gets information about the game that was being played when the clip was created.

Return type: HelixGame | null

getVideo()

async

Gets information about the video the clip is taken from.

Return type: HelixVideo