Method: superChatEvents.list

Lists Super Chat and Super Sticker events for a channel's live streams.

Initial requests without a pageToken return up to maxResults (default 5, maximum 50) recent events from the previous 30 days, ordered from newest to oldest, and set nextPageToken to poll for newer events. Continuation requests with a pageToken select the oldest unreturned events newer than the token timestamp from the 50 most recent events so pages advance chronologically, while items within each page are ordered from newest to oldest. If more than 50 events newer than the token exist, older unreturned events are skipped. Removed events and events from blocked users are omitted.

For method-specific error responses, see superChatEvents.list errors. For code examples, see superChatEvents.list code snippets.

HTTP request

GET https://youtube.googleapis.com/youtube/v3/superChatEvents

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
hl

string

Specifies the language used to format snippet.displayString and localize snippet.superStickerMetadata.altText. The value must be a language code included in the list returned by the i18nLanguages.list method.

The default value is en-US, which formats display strings using English conventions (for example, $1.00 rather than 1,00 $).

maxResults

integer (uint32 format)

Specifies the maximum number of items returned in the result set. Acceptable values are 1 to 50, inclusive. The default value is 5.

pageToken

string

Identifies a specific page in the result set to return. In an API response, the nextPageToken property identifies the next page of newer events that can be retrieved.

part[]

string

Required. Specifies the superChatEvent resource parts that the API response includes. Supported values are id and snippet. Both id and snippet are always returned in the response regardless of which supported value is requested. Other values return an unknownPart error.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "etag": string,
  "nextPageToken": string,
  "pageInfo": {
    "totalResults": integer,
    "resultsPerPage": integer
  },
  "items": [
    {
      object (SuperChatEvent)
    }
  ]
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#superChatEventListResponse".

etag

string

Etag of this resource.

nextPageToken

string

The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.

pageInfo

object

The pageInfo object encapsulates paging information for the result set. totalResults counts at most the 50 most recent matching events, and both totalResults and resultsPerPage include removed events and events from blocked users that are omitted from items.

pageInfo.totalResults

integer

The total number of results in the result set.

pageInfo.resultsPerPage

integer

The number of results included in the API response.

items[]

object (SuperChatEvent)

A list of Super Chat and Super Sticker purchases that match the request criteria.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/youtube
  • https://www.googleapis.com/auth/youtube.readonly
  • https://www.googleapis.com/auth/youtube.force-ssl

For more information, see the OAuth 2.0 Overview.