Returns a list of comment threads that match the API request parameters.
Retrieving comment threads for a post is in a pilot phase with access limited to select launch partners (approved Google Cloud projects). Broader public API access is planned for General Availability in 2027.
Requests for public comment threads (moderationStatus=published on public videos, posts, or channels) can use an API key without OAuth 2.0 authorization; the listed OAuth scope applies only to authorized requests. Requests that set moderationStatus=heldForReview, retrieve comments on members-only videos, or include unlisted video comments in allThreadsRelatedToChannelId require OAuth 2.0 authorization. For method-specific error responses, see commentThreads.list errors. For code examples, see commentThreads.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/commentThreads
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id[] |
Specifies a comma-separated list of comment thread IDs to retrieve. Specify exactly one filter parameter ( |
videoId |
Returns comment threads associated with the specified video ID. Specify exactly one filter parameter ( |
postId |
Returns comment threads associated with the specified post ID. Specify exactly one filter parameter ( This parameter is available only to approved Google Cloud projects. The |
allThreadsRelatedToChannelId |
Returns comment threads for all videos associated with the specified channel ID. Comment threads for posts are omitted even for approved projects, and comments on unlisted videos are included only when the authorized caller is the channel owner or a user with permission to manage comments for the channel. Specify exactly one filter parameter ( |
moderationStatus |
Limits the returned comment threads to those with the specified moderation status. The default value is Setting Valid values for this method:
The |
searchTerms |
Limits the API response to comment threads containing the specified search terms. This parameter isn't supported with |
textFormat |
Specifies whether the API returns comments formatted as HTML or plain text. The default value is Valid values of this enum field are:
|
order |
Specifies the order in which the API response lists comment threads. The default value is Valid values of this enum field are:
|
maxResults |
Specifies the maximum number of items returned in the result set. Acceptable values are This parameter isn't supported with the |
pageToken |
Identifies a specific page in the result set to return. In an API response, the This parameter isn't supported with the |
part[] |
Required. Specifies a comma-separated list of one or more Valid values are |
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 ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
nextPageToken |
The token that can be used as the value of the |
pageInfo |
Encapsulates paging information for the result set. In |
pageInfo.totalResults |
The total number of results in the result set. |
pageInfo.resultsPerPage |
The number of results included in the API response. |
items[] |
A list of comment threads that match the request criteria. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.