Method: liveChatModerators.list

Lists standard moderators for a live chat.

Requests must be authorized by the owner of the live chat's channel or a user with channel-level comment management permissions (such as a YouTube Studio Manager or Editor). Managing moderators and inactive channels are omitted from results.

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

HTTP request

GET https://youtube.googleapis.com/youtube/v3/liveChat/moderators

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
liveChatId

string

Required. Specifies the YouTube live chat for which the API returns moderators. The live chat ID associated with a broadcast is returned in the liveBroadcast resource's snippet.liveChatId property.

maxResults

integer (uint32 format)

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

pageToken

string

The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.

part[]

string

Required. The part parameter specifies the liveChatModerator resource parts that the API response will include. Supported values are id and snippet.

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,
  "pageInfo": {
    "totalResults": integer,
    "resultsPerPage": integer
  },
  "nextPageToken": string,
  "prevPageToken": string,
  "items": [
    {
      object (LiveChatModerator)
    }
  ]
}
Fields
kind

string

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

etag

string

Etag of this resource.

pageInfo

object

General pagination information.

pageInfo.totalResults

integer

The total number of results in the result set.

pageInfo.resultsPerPage

integer

The number of results included in the API response.

nextPageToken

string

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

prevPageToken

string

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

items[]

object (LiveChatModerator)

A list of moderators 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.