• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="youtube_v3.html">YouTube Data API</a> . <a href="youtube_v3.commentThreads.html">commentThreads</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#insert">insert(part, body)</a></code></p>
79<p class="firstline">Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert method instead.</p>
80<p class="toc_element">
81  <code><a href="#list">list(part, channelId=None, id=None, pageToken=None, allThreadsRelatedToChannelId=None, moderationStatus=None, videoId=None, maxResults=None, searchTerms=None, textFormat=None, order=None)</a></code></p>
82<p class="firstline">Returns a list of comment threads that match the API request parameters.</p>
83<p class="toc_element">
84  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<p class="toc_element">
87  <code><a href="#update">update(part, body)</a></code></p>
88<p class="firstline">Modifies the top-level comment in a comment thread.</p>
89<h3>Method Details</h3>
90<div class="method">
91    <code class="details" id="insert">insert(part, body)</code>
92  <pre>Creates a new top-level comment. To add a reply to an existing comment, use the comments.insert method instead.
93
94Args:
95  part: string, The part parameter identifies the properties that the API response will include. Set the parameter value to snippet. The snippet part has a quota cost of 2 units. (required)
96  body: object, The request body. (required)
97    The object takes the form of:
98
99{ # A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
100    "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
101      "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
102      "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
103      "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
104      "canReply": True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
105      "totalReplyCount": 42, # The total number of replies (not including the top level comment).
106      "topLevelComment": { # A comment represents a single YouTube comment. # The top level comment of this thread.
107        "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
108          "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
109          "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
110          "authorDisplayName": "A String", # The name of the user who posted the comment.
111          "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
112          "videoId": "A String", # The ID of the video the comment refers to, if any.
113          "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
114          "likeCount": 42, # The total number of likes this comment has received.
115          "authorChannelId": "", # The id of the author's YouTube channel, if any.
116          "parentId": "A String", # The unique id of the parent comment, only set for replies.
117          "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
118          "canRate": True or False, # Whether the current viewer can rate this comment.
119          "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
120          "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
121          "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
122          "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
123        },
124        "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
125        "etag": "A String", # Etag of this resource.
126        "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
127      },
128    },
129    "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
130    "etag": "A String", # Etag of this resource.
131    "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread.
132    "replies": { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
133      "comments": [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
134        { # A comment represents a single YouTube comment.
135          "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
136            "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
137            "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
138            "authorDisplayName": "A String", # The name of the user who posted the comment.
139            "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
140            "videoId": "A String", # The ID of the video the comment refers to, if any.
141            "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
142            "likeCount": 42, # The total number of likes this comment has received.
143            "authorChannelId": "", # The id of the author's YouTube channel, if any.
144            "parentId": "A String", # The unique id of the parent comment, only set for replies.
145            "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
146            "canRate": True or False, # Whether the current viewer can rate this comment.
147            "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
148            "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
149            "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
150            "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
151          },
152          "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
153          "etag": "A String", # Etag of this resource.
154          "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
155        },
156      ],
157    },
158  }
159
160
161Returns:
162  An object of the form:
163
164    { # A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
165      "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
166        "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
167        "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
168        "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
169        "canReply": True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
170        "totalReplyCount": 42, # The total number of replies (not including the top level comment).
171        "topLevelComment": { # A comment represents a single YouTube comment. # The top level comment of this thread.
172          "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
173            "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
174            "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
175            "authorDisplayName": "A String", # The name of the user who posted the comment.
176            "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
177            "videoId": "A String", # The ID of the video the comment refers to, if any.
178            "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
179            "likeCount": 42, # The total number of likes this comment has received.
180            "authorChannelId": "", # The id of the author's YouTube channel, if any.
181            "parentId": "A String", # The unique id of the parent comment, only set for replies.
182            "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
183            "canRate": True or False, # Whether the current viewer can rate this comment.
184            "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
185            "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
186            "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
187            "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
188          },
189          "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
190          "etag": "A String", # Etag of this resource.
191          "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
192        },
193      },
194      "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
195      "etag": "A String", # Etag of this resource.
196      "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread.
197      "replies": { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
198        "comments": [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
199          { # A comment represents a single YouTube comment.
200            "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
201              "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
202              "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
203              "authorDisplayName": "A String", # The name of the user who posted the comment.
204              "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
205              "videoId": "A String", # The ID of the video the comment refers to, if any.
206              "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
207              "likeCount": 42, # The total number of likes this comment has received.
208              "authorChannelId": "", # The id of the author's YouTube channel, if any.
209              "parentId": "A String", # The unique id of the parent comment, only set for replies.
210              "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
211              "canRate": True or False, # Whether the current viewer can rate this comment.
212              "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
213              "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
214              "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
215              "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
216            },
217            "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
218            "etag": "A String", # Etag of this resource.
219            "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
220          },
221        ],
222      },
223    }</pre>
224</div>
225
226<div class="method">
227    <code class="details" id="list">list(part, channelId=None, id=None, pageToken=None, allThreadsRelatedToChannelId=None, moderationStatus=None, videoId=None, maxResults=None, searchTerms=None, textFormat=None, order=None)</code>
228  <pre>Returns a list of comment threads that match the API request parameters.
229
230Args:
231  part: string, The part parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include. (required)
232  channelId: string, The channelId parameter instructs the API to return comment threads containing comments about the specified channel. (The response will not include comments left on videos that the channel uploaded.)
233  id: string, The id parameter specifies a comma-separated list of comment thread IDs for the resources that should be retrieved.
234  pageToken: string, The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken property identifies the next page of the result that can be retrieved.
235
236Note: This parameter is not supported for use in conjunction with the id parameter.
237  allThreadsRelatedToChannelId: string, The allThreadsRelatedToChannelId parameter instructs the API to return all comment threads associated with the specified channel. The response can include comments about the channel or about the channel's videos.
238  moderationStatus: string, Set this parameter to limit the returned comment threads to a particular moderation state.
239
240Note: This parameter is not supported for use in conjunction with the id parameter.
241    Allowed values
242      heldForReview - Retrieve comment threads that are awaiting review by a moderator. A comment thread can be included in the response if the top-level comment or at least one of the replies to that comment are awaiting review.
243      likelySpam - Retrieve comment threads classified as likely to be spam. A comment thread can be included in the response if the top-level comment or at least one of the replies to that comment is considered likely to be spam.
244      published - Retrieve threads of published comments. This is the default value. A comment thread can be included in the response if its top-level comment has been published.
245  videoId: string, The videoId parameter instructs the API to return comment threads associated with the specified video ID.
246  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
247
248Note: This parameter is not supported for use in conjunction with the id parameter.
249  searchTerms: string, The searchTerms parameter instructs the API to limit the API response to only contain comments that contain the specified search terms.
250
251Note: This parameter is not supported for use in conjunction with the id parameter.
252  textFormat: string, Set this parameter's value to html or plainText to instruct the API to return the comments left by users in html formatted or in plain text.
253    Allowed values
254      html - Returns the comments in HTML format. This is the default value.
255      plainText - Returns the comments in plain text format.
256  order: string, The order parameter specifies the order in which the API response should list comment threads. Valid values are:
257- time - Comment threads are ordered by time. This is the default behavior.
258- relevance - Comment threads are ordered by relevance.Note: This parameter is not supported for use in conjunction with the id parameter.
259    Allowed values
260      relevance - Order by relevance.
261      time - Order by time.
262
263Returns:
264  An object of the form:
265
266    {
267    "eventId": "A String", # Serialized EventId of the request which produced this response.
268    "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
269    "kind": "youtube#commentThreadListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThreadListResponse".
270    "visitorId": "A String", # The visitorId identifies the visitor.
271    "items": [ # A list of comment threads that match the request criteria.
272      { # A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
273          "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
274            "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
275            "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
276            "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
277            "canReply": True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
278            "totalReplyCount": 42, # The total number of replies (not including the top level comment).
279            "topLevelComment": { # A comment represents a single YouTube comment. # The top level comment of this thread.
280              "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
281                "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
282                "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
283                "authorDisplayName": "A String", # The name of the user who posted the comment.
284                "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
285                "videoId": "A String", # The ID of the video the comment refers to, if any.
286                "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
287                "likeCount": 42, # The total number of likes this comment has received.
288                "authorChannelId": "", # The id of the author's YouTube channel, if any.
289                "parentId": "A String", # The unique id of the parent comment, only set for replies.
290                "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
291                "canRate": True or False, # Whether the current viewer can rate this comment.
292                "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
293                "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
294                "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
295                "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
296              },
297              "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
298              "etag": "A String", # Etag of this resource.
299              "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
300            },
301          },
302          "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
303          "etag": "A String", # Etag of this resource.
304          "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread.
305          "replies": { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
306            "comments": [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
307              { # A comment represents a single YouTube comment.
308                "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
309                  "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
310                  "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
311                  "authorDisplayName": "A String", # The name of the user who posted the comment.
312                  "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
313                  "videoId": "A String", # The ID of the video the comment refers to, if any.
314                  "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
315                  "likeCount": 42, # The total number of likes this comment has received.
316                  "authorChannelId": "", # The id of the author's YouTube channel, if any.
317                  "parentId": "A String", # The unique id of the parent comment, only set for replies.
318                  "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
319                  "canRate": True or False, # Whether the current viewer can rate this comment.
320                  "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
321                  "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
322                  "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
323                  "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
324                },
325                "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
326                "etag": "A String", # Etag of this resource.
327                "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
328              },
329            ],
330          },
331        },
332    ],
333    "tokenPagination": { # Stub token pagination template to suppress results.
334    },
335    "etag": "A String", # Etag of this resource.
336    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
337      "totalResults": 42, # The total number of results in the result set.
338      "resultsPerPage": 42, # The number of results included in the API response.
339    },
340  }</pre>
341</div>
342
343<div class="method">
344    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
345  <pre>Retrieves the next page of results.
346
347Args:
348  previous_request: The request for the previous page. (required)
349  previous_response: The response from the request for the previous page. (required)
350
351Returns:
352  A request object that you can call 'execute()' on to request the next
353  page. Returns None if there are no more items in the collection.
354    </pre>
355</div>
356
357<div class="method">
358    <code class="details" id="update">update(part, body)</code>
359  <pre>Modifies the top-level comment in a comment thread.
360
361Args:
362  part: string, The part parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update. (required)
363  body: object, The request body. (required)
364    The object takes the form of:
365
366{ # A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
367    "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
368      "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
369      "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
370      "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
371      "canReply": True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
372      "totalReplyCount": 42, # The total number of replies (not including the top level comment).
373      "topLevelComment": { # A comment represents a single YouTube comment. # The top level comment of this thread.
374        "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
375          "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
376          "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
377          "authorDisplayName": "A String", # The name of the user who posted the comment.
378          "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
379          "videoId": "A String", # The ID of the video the comment refers to, if any.
380          "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
381          "likeCount": 42, # The total number of likes this comment has received.
382          "authorChannelId": "", # The id of the author's YouTube channel, if any.
383          "parentId": "A String", # The unique id of the parent comment, only set for replies.
384          "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
385          "canRate": True or False, # Whether the current viewer can rate this comment.
386          "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
387          "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
388          "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
389          "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
390        },
391        "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
392        "etag": "A String", # Etag of this resource.
393        "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
394      },
395    },
396    "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
397    "etag": "A String", # Etag of this resource.
398    "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread.
399    "replies": { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
400      "comments": [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
401        { # A comment represents a single YouTube comment.
402          "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
403            "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
404            "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
405            "authorDisplayName": "A String", # The name of the user who posted the comment.
406            "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
407            "videoId": "A String", # The ID of the video the comment refers to, if any.
408            "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
409            "likeCount": 42, # The total number of likes this comment has received.
410            "authorChannelId": "", # The id of the author's YouTube channel, if any.
411            "parentId": "A String", # The unique id of the parent comment, only set for replies.
412            "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
413            "canRate": True or False, # Whether the current viewer can rate this comment.
414            "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
415            "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
416            "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
417            "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
418          },
419          "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
420          "etag": "A String", # Etag of this resource.
421          "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
422        },
423      ],
424    },
425  }
426
427
428Returns:
429  An object of the form:
430
431    { # A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.
432      "snippet": { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
433        "isPublic": True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
434        "channelId": "A String", # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn't set the comments refer to the channel itself.
435        "videoId": "A String", # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
436        "canReply": True or False, # Whether the current viewer of the thread can reply to it. This is viewer specific - other viewers may see a different value for this field.
437        "totalReplyCount": 42, # The total number of replies (not including the top level comment).
438        "topLevelComment": { # A comment represents a single YouTube comment. # The top level comment of this thread.
439          "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
440            "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
441            "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
442            "authorDisplayName": "A String", # The name of the user who posted the comment.
443            "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
444            "videoId": "A String", # The ID of the video the comment refers to, if any.
445            "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
446            "likeCount": 42, # The total number of likes this comment has received.
447            "authorChannelId": "", # The id of the author's YouTube channel, if any.
448            "parentId": "A String", # The unique id of the parent comment, only set for replies.
449            "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
450            "canRate": True or False, # Whether the current viewer can rate this comment.
451            "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
452            "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
453            "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
454            "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
455          },
456          "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
457          "etag": "A String", # Etag of this resource.
458          "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
459        },
460      },
461      "kind": "youtube#commentThread", # Identifies what kind of resource this is. Value: the fixed string "youtube#commentThread".
462      "etag": "A String", # Etag of this resource.
463      "id": "A String", # The ID that YouTube uses to uniquely identify the comment thread.
464      "replies": { # Comments written in (direct or indirect) reply to the top level comment. # The replies object contains a limited number of replies (if any) to the top level comment found in the snippet.
465        "comments": [ # A limited number of replies. Unless the number of replies returned equals total_reply_count in the snippet the returned replies are only a subset of the total number of replies.
466          { # A comment represents a single YouTube comment.
467            "snippet": { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
468              "authorChannelUrl": "A String", # Link to the author's YouTube channel, if any.
469              "viewerRating": "A String", # The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.
470              "authorDisplayName": "A String", # The name of the user who posted the comment.
471              "channelId": "A String", # The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel.
472              "videoId": "A String", # The ID of the video the comment refers to, if any.
473              "moderationStatus": "A String", # The comment's moderation status. Will not be set if the comments were requested through the id filter.
474              "likeCount": 42, # The total number of likes this comment has received.
475              "authorChannelId": "", # The id of the author's YouTube channel, if any.
476              "parentId": "A String", # The unique id of the parent comment, only set for replies.
477              "publishedAt": "A String", # The date and time when the comment was orignally published. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
478              "canRate": True or False, # Whether the current viewer can rate this comment.
479              "textOriginal": "A String", # The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author.
480              "updatedAt": "A String", # The date and time when was last updated . The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
481              "authorProfileImageUrl": "A String", # The URL for the avatar of the user who posted the comment.
482              "textDisplay": "A String", # The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc.
483            },
484            "kind": "youtube#comment", # Identifies what kind of resource this is. Value: the fixed string "youtube#comment".
485            "etag": "A String", # Etag of this resource.
486            "id": "A String", # The ID that YouTube uses to uniquely identify the comment.
487          },
488        ],
489      },
490    }</pre>
491</div>
492
493</body></html>