blob: 6188f252e1468ca794f5a5f1b07e4d2c2e0568df [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.commentThreads.html">commentThreads</a></h1>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#insert">insert(part, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Inserts a new resource into this collection.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000083<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#list">list(part, allThreadsRelatedToChannelId=None, channelId=None, id=None, maxResults=None, moderationStatus=None, order=None, pageToken=None, searchTerms=None, textFormat=None, videoId=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085<p class="firstline">Retrieves a list of resources, possibly filtered.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000086<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000089<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code>
97 <pre>Inserts a new resource into this collection.
Nathaniel Manista4f877e52015-06-15 16:44:50 +000098
99Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 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) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 body: object, The request body.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000102 The object takes the form of:
103
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104{ # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800105 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800106 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment thread.
107 &quot;kind&quot;: &quot;youtube#commentThread&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThread&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800108 &quot;replies&quot;: { # 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.
109 &quot;comments&quot;: [ # 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.
110 { # A *comment* represents a single YouTube comment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800111 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
112 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
113 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
116 &quot;value&quot;: &quot;A String&quot;,
117 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800118 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800119 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800120 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800121 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
122 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
123 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
124 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
125 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800126 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800127 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
128 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800129 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800130 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
131 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700132 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800134 ],
135 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800136 &quot;snippet&quot;: { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
137 &quot;canReply&quot;: 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.
138 &quot;channelId&quot;: &quot;A String&quot;, # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn&#x27;t set the comments refer to the channel itself.
139 &quot;isPublic&quot;: True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
140 &quot;topLevelComment&quot;: { # A *comment* represents a single YouTube comment. # The top level comment of this thread.
141 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
142 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
143 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
144 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
145 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
146 &quot;value&quot;: &quot;A String&quot;,
147 },
148 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
149 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
150 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
151 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
152 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
153 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
154 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
155 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800156 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
158 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800159 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800160 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
161 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
162 },
163 },
164 &quot;totalReplyCount&quot;: 42, # The total number of replies (not including the top level comment).
165 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
166 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800167}
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000168
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700169 x__xgafv: string, V1 error format.
170 Allowed values
171 1 - v1 error format
172 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000173
174Returns:
175 An object of the form:
176
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700177 { # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800178 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
179 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment thread.
180 &quot;kind&quot;: &quot;youtube#commentThread&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThread&quot;.
181 &quot;replies&quot;: { # 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.
182 &quot;comments&quot;: [ # 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.
183 { # A *comment* represents a single YouTube comment.
184 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
185 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
186 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800187 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800188 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
189 &quot;value&quot;: &quot;A String&quot;,
190 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800191 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800192 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800193 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800194 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
195 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
196 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
197 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
198 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800199 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800200 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
201 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800202 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800203 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
204 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800205 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800206 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800207 ],
208 },
209 &quot;snippet&quot;: { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
210 &quot;canReply&quot;: 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.
211 &quot;channelId&quot;: &quot;A String&quot;, # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn&#x27;t set the comments refer to the channel itself.
212 &quot;isPublic&quot;: True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
213 &quot;topLevelComment&quot;: { # A *comment* represents a single YouTube comment. # The top level comment of this thread.
214 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
215 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
216 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
217 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
218 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
219 &quot;value&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700220 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
222 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
223 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
224 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
225 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
226 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
227 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
228 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800229 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800230 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
231 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800232 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800233 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
234 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
235 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800236 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800237 &quot;totalReplyCount&quot;: 42, # The total number of replies (not including the top level comment).
238 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
239 },
240}</pre>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000241</div>
242
243<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800244 <code class="details" id="list">list(part, allThreadsRelatedToChannelId=None, channelId=None, id=None, maxResults=None, moderationStatus=None, order=None, pageToken=None, searchTerms=None, textFormat=None, videoId=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700245 <pre>Retrieves a list of resources, possibly filtered.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000246
247Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700248 part: string, The *part* parameter specifies a comma-separated list of one or more commentThread resource properties that the API response will include. (required) (repeated)
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800249 allThreadsRelatedToChannelId: string, Returns the comment threads of all videos of the channel and the channel comments as well.
250 channelId: string, Returns the comment threads for all the channel comments (ie does not include comments left on videos).
251 id: string, Returns the comment threads with the given IDs for Stubby or Apiary. (repeated)
252 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 moderationStatus: string, Limits the returned comment threads to those with the specified moderation status. Not compatible with the &#x27;id&#x27; filter. Valid values: published, heldForReview, likelySpam.
254 Allowed values
255 published - The comment is available for public display.
256 heldForReview - The comment is awaiting review by a moderator.
257 likelySpam -
258 rejected - The comment is unfit for display.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800259 order: string, A parameter
260 Allowed values
261 orderUnspecified -
262 time - Order by time.
263 relevance - Order by relevance.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 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.
265 searchTerms: string, Limits the returned comment threads to those matching the specified key words. Not compatible with the &#x27;id&#x27; filter.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800266 textFormat: string, The requested text format for the returned comments.
267 Allowed values
268 textFormatUnspecified -
269 html - Returns the comments in HTML format. This is the default value.
270 plainText - Returns the comments in plain text format.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 videoId: string, Returns the comment threads of the specified video.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700272 x__xgafv: string, V1 error format.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000273 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700274 1 - v1 error format
275 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000276
277Returns:
278 An object of the form:
279
280 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800281 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
282 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
283 &quot;items&quot;: [ # A list of comment threads that match the request criteria.
284 { # 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.
285 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
286 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment thread.
287 &quot;kind&quot;: &quot;youtube#commentThread&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThread&quot;.
288 &quot;replies&quot;: { # 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.
289 &quot;comments&quot;: [ # 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.
290 { # A *comment* represents a single YouTube comment.
291 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
292 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
293 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800294 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800295 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
296 &quot;value&quot;: &quot;A String&quot;,
297 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800300 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
302 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
303 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
304 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
305 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800306 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
308 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800309 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800310 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
311 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800312 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800315 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 &quot;snippet&quot;: { # Basic details about a comment thread. # The snippet object contains basic details about the comment thread and also the top level comment.
317 &quot;canReply&quot;: 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.
318 &quot;channelId&quot;: &quot;A String&quot;, # The YouTube channel the comments in the thread refer to or the channel with the video the comments refer to. If video_id isn&#x27;t set the comments refer to the channel itself.
319 &quot;isPublic&quot;: True or False, # Whether the thread (and therefore all its comments) is visible to all YouTube users.
320 &quot;topLevelComment&quot;: { # A *comment* represents a single YouTube comment. # The top level comment of this thread.
321 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
322 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the comment.
323 &quot;kind&quot;: &quot;youtube#comment&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#comment&quot;.
324 &quot;snippet&quot;: { # Basic details about a comment, such as its author and text. # The snippet object contains basic details about the comment.
325 &quot;authorChannelId&quot;: { # The id of the author&#x27;s YouTube channel, if any.
326 &quot;value&quot;: &quot;A String&quot;,
327 },
328 &quot;authorChannelUrl&quot;: &quot;A String&quot;, # Link to the author&#x27;s YouTube channel, if any.
329 &quot;authorDisplayName&quot;: &quot;A String&quot;, # The name of the user who posted the comment.
330 &quot;authorProfileImageUrl&quot;: &quot;A String&quot;, # The URL for the avatar of the user who posted the comment.
331 &quot;canRate&quot;: True or False, # Whether the current viewer can rate this comment.
332 &quot;channelId&quot;: &quot;A String&quot;, # 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&#x27;s the video&#x27;s channel.
333 &quot;likeCount&quot;: 42, # The total number of likes this comment has received.
334 &quot;moderationStatus&quot;: &quot;A String&quot;, # The comment&#x27;s moderation status. Will not be set if the comments were requested through the id filter.
335 &quot;parentId&quot;: &quot;A String&quot;, # The unique id of the parent comment, only set for replies.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800336 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time when the comment was originally published.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800337 &quot;textDisplay&quot;: &quot;A String&quot;, # The comment&#x27;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.
338 &quot;textOriginal&quot;: &quot;A String&quot;, # The comment&#x27;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&#x27;s author.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800339 &quot;updatedAt&quot;: &quot;A String&quot;, # The date and time when the comment was last updated.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comment refers to, if any.
341 &quot;viewerRating&quot;: &quot;A String&quot;, # 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.
342 },
343 },
344 &quot;totalReplyCount&quot;: 42, # The total number of replies (not including the top level comment).
345 &quot;videoId&quot;: &quot;A String&quot;, # The ID of the video the comments refer to, if any. No video_id implies a channel discussion comment.
346 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800347 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800348 ],
349 &quot;kind&quot;: &quot;youtube#commentThreadListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#commentThreadListResponse&quot;.
350 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
351 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # General pagination information.
352 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
353 &quot;totalResults&quot;: 42, # The total number of results in the result set.
354 },
355 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
356 },
357 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
358}</pre>
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000359</div>
360
361<div class="method">
362 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
363 <pre>Retrieves the next page of results.
364
365Args:
366 previous_request: The request for the previous page. (required)
367 previous_response: The response from the request for the previous page. (required)
368
369Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000371 page. Returns None if there are no more items in the collection.
372 </pre>
373</div>
374
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000375</body></html>