Resource: SuperChatEvent
A superChatEvent resource represents a Super Chat or Super Sticker purchase during a YouTube live stream. In live chat, Super Chats stand out from other messages in two ways:
- Super Chats are highlighted with a color.
- Super Chats stay pinned in the ticker for a set period of time.
The highlight color, pin duration, and maximum message length depend on the purchase amount. See the YouTube Help Center to learn more about Super Chats and Super Stickers.
| JSON representation |
|---|
{ "kind": string, "etag": string, "id": string, "snippet": { "channelId": string, "supporterDetails": { "channelId": string, "channelUrl": string, "displayName": string, "profileImageUrl": string }, "commentText": string, "createdAt": string, "amountMicros": string, "currency": string, "displayString": string, "messageType": integer, "isSuperStickerEvent": boolean, "superStickerMetadata": { "stickerId": string, "altText": string, "altTextLanguage": string } } } |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
id |
The ID that YouTube assigns to uniquely identify the Super Chat event. |
snippet |
The |
snippet.channelId |
The YouTube channel ID that identifies the channel that broadcast the live stream associated with the Super Chat event. |
snippet.supporterDetails |
Details about the supporter's channel. In |
snippet.supporterDetails.channelId |
The YouTube channel ID. |
snippet.supporterDetails.channelUrl |
The channel's URL. |
snippet.supporterDetails.displayName |
The channel's display name. |
snippet.supporterDetails.profileImageUrl |
The channel's avatar URL. |
snippet.commentText |
The text content of the supporter's comment. This property is omitted for Super Sticker events. |
snippet.createdAt |
The date and time when the event occurred. The value is an ISO 8601 timestamp in UTC with a |
snippet.amountMicros |
The purchase amount, in micros of the purchase currency. For example, if the purchase amount is one dollar, the |
snippet.currency |
The currency in which the purchase was made. The value is an ISO 4217 currency code. |
snippet.displayString |
A string, such as |
snippet.messageType |
The tier for the paid message, based on the purchase amount. In a The tier determines the highlight color in live chat, the maximum message length, and how long the message stays pinned in the ticker. For tier details, see the YouTube Help Center. |
snippet.isSuperStickerEvent |
Indicates whether the resource represents a Super Sticker, which is a Super Chat purchase with an associated sticker image. This property is set to |
snippet.superStickerMetadata |
Metadata about the Super Sticker. This object is only returned when |
snippet.superStickerMetadata.stickerId |
Unique identifier of the Super Sticker. This is a shorter form of The sticker image is displayed in YouTube live chat, and the image URL isn't available through the API. For reference, see the Super Sticker ID to URL mapping CSV. |
snippet.superStickerMetadata.altText |
Internationalized alt text that describes the sticker image and any animation associated with it. The |
snippet.superStickerMetadata.altTextLanguage |
Specifies the localization language in which |
Methods |
|
|---|---|
|
Lists Super Chat and Super Sticker events for a channel's live streams. |