Clip

@Serializable
data class Clip(val id: String, val url: String, val embedUrl: String, val broadcasterId: String, val broadcasterName: String, val creatorId: String, val creatorName: String, val videoId: String = "", val gameId: String = "", val language: String = "", val title: String, val viewCount: Int = 0, val createdAt: Instant, val thumbnailUrl: String, val duration: Double = 0.0, val vodOffset: Int? = null, val isFeatured: Boolean = false)

Twitch API: Clip

Constructors

Link copied to clipboard
constructor(id: String, url: String, embedUrl: String, broadcasterId: String, broadcasterName: String, creatorId: String, creatorName: String, videoId: String = "", gameId: String = "", language: String = "", title: String, viewCount: Int = 0, createdAt: Instant, thumbnailUrl: String, duration: Double = 0.0, vodOffset: Int? = null, isFeatured: Boolean = false)

Properties

Link copied to clipboard
@SerialName(value = "broadcaster_id")
val broadcasterId: String

the broadcaster's user ID.

Link copied to clipboard
@SerialName(value = "broadcaster_name")
val broadcasterName: String

the broadcaster's display name.

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant

when the clip was created.

Link copied to clipboard
@SerialName(value = "creator_id")
val creatorId: String

the user ID of the clip creator.

Link copied to clipboard
@SerialName(value = "creator_name")
val creatorName: String

the display name of the clip creator.

Link copied to clipboard

the clip duration in seconds.

Link copied to clipboard
@SerialName(value = "embed_url")
val embedUrl: String

the embeddable clip URL.

Link copied to clipboard
@SerialName(value = "game_id")
val gameId: String

the game/category ID.

Link copied to clipboard
val id: String

the clip ID.

Link copied to clipboard
@SerialName(value = "is_featured")
val isFeatured: Boolean

whether the clip is featured.

Link copied to clipboard

the language of the stream when the clip was created.

Link copied to clipboard
@SerialName(value = "thumbnail_url")
val thumbnailUrl: String

the clip thumbnail URL.

Link copied to clipboard

the clip title.

Link copied to clipboard
val url: String

the clip URL.

Link copied to clipboard
@SerialName(value = "video_id")
val videoId: String

the VOD ID the clip was created from; empty if the VOD has been deleted.

Link copied to clipboard
@SerialName(value = "view_count")
val viewCount: Int

the number of times the clip has been viewed.

Link copied to clipboard
@SerialName(value = "vod_offset")
val vodOffset: Int?

the offset in the VOD where the clip starts; null if unknown.