• 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.playlists.html">playlists</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(id, onBehalfOfContentOwner=None)</a></code></p>
79<p class="firstline">Deletes a playlist.</p>
80<p class="toc_element">
81  <code><a href="#insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p>
82<p class="firstline">Creates a playlist.</p>
83<p class="toc_element">
84  <code><a href="#list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, hl=None, channelId=None, mine=None, maxResults=None, id=None)</a></code></p>
85<p class="firstline">Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.</p>
86<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>
89<p class="toc_element">
90  <code><a href="#update">update(part, body, onBehalfOfContentOwner=None)</a></code></p>
91<p class="firstline">Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None)</code>
95  <pre>Deletes a playlist.
96
97Args:
98  id: string, The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a playlist resource, the id property specifies the playlist's ID. (required)
99  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
100
101The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
102</pre>
103</div>
104
105<div class="method">
106    <code class="details" id="insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code>
107  <pre>Creates a playlist.
108
109Args:
110  part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. (required)
111  body: object, The request body. (required)
112    The object takes the form of:
113
114{ # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
115      #
116      # YouTube also uses playlists to identify special collections of videos for a channel, such as:
117      # - uploaded videos
118      # - favorite videos
119      # - positively rated (liked) videos
120      # - watch history
121      # - watch later  To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the  channel resource for a given channel.
122      #
123      # You can then use the   playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the   playlistItems.insert and   playlistItems.delete methods.
124    "status": { # The status object contains status information for the playlist.
125      "privacyStatus": "A String", # The playlist's privacy status.
126    },
127    "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
128    "contentDetails": { # The contentDetails object contains information like video count.
129      "itemCount": 42, # The number of videos in the playlist.
130    },
131    "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
132      "description": "A String", # The playlist's description.
133      "tags": [ # Keyword tags associated with the playlist.
134        "A String",
135      ],
136      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
137      "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
138      "channelTitle": "A String", # The channel title of the channel that the video belongs to.
139      "title": "A String", # The playlist's title.
140      "defaultLanguage": "A String", # The language of the playlist's default title and description.
141      "localized": { # Playlist localization setting # Localized title and description, read-only.
142        "description": "A String", # The localized strings for playlist's description.
143        "title": "A String", # The localized strings for playlist's title.
144      },
145      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
146        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
147          "url": "A String", # The thumbnail image's URL.
148          "width": 42, # (Optional) Width of the thumbnail image.
149          "height": 42, # (Optional) Height of the thumbnail image.
150        },
151        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
152          "url": "A String", # The thumbnail image's URL.
153          "width": 42, # (Optional) Width of the thumbnail image.
154          "height": 42, # (Optional) Height of the thumbnail image.
155        },
156        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
157          "url": "A String", # The thumbnail image's URL.
158          "width": 42, # (Optional) Width of the thumbnail image.
159          "height": 42, # (Optional) Height of the thumbnail image.
160        },
161        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
162          "url": "A String", # The thumbnail image's URL.
163          "width": 42, # (Optional) Width of the thumbnail image.
164          "height": 42, # (Optional) Height of the thumbnail image.
165        },
166        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
167          "url": "A String", # The thumbnail image's URL.
168          "width": 42, # (Optional) Width of the thumbnail image.
169          "height": 42, # (Optional) Height of the thumbnail image.
170        },
171      },
172    },
173    "player": { # The player object contains information that you would use to play the playlist in an embedded player.
174      "embedHtml": "A String", # An <iframe> tag that embeds a player that will play the playlist.
175    },
176    "etag": "A String", # Etag of this resource.
177    "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
178    "localizations": { # Localizations for different languages
179      "a_key": { # Playlist localization setting # The language tag, using string since map_key require simple types.
180        "description": "A String", # The localized strings for playlist's description.
181        "title": "A String", # The localized strings for playlist's title.
182      },
183    },
184  }
185
186  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
187
188The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
189  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
190
191The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.
192
193This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
194
195Returns:
196  An object of the form:
197
198    { # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
199        #
200        # YouTube also uses playlists to identify special collections of videos for a channel, such as:
201        # - uploaded videos
202        # - favorite videos
203        # - positively rated (liked) videos
204        # - watch history
205        # - watch later  To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the  channel resource for a given channel.
206        #
207        # You can then use the   playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the   playlistItems.insert and   playlistItems.delete methods.
208      "status": { # The status object contains status information for the playlist.
209        "privacyStatus": "A String", # The playlist's privacy status.
210      },
211      "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
212      "contentDetails": { # The contentDetails object contains information like video count.
213        "itemCount": 42, # The number of videos in the playlist.
214      },
215      "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
216        "description": "A String", # The playlist's description.
217        "tags": [ # Keyword tags associated with the playlist.
218          "A String",
219        ],
220        "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
221        "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
222        "channelTitle": "A String", # The channel title of the channel that the video belongs to.
223        "title": "A String", # The playlist's title.
224        "defaultLanguage": "A String", # The language of the playlist's default title and description.
225        "localized": { # Playlist localization setting # Localized title and description, read-only.
226          "description": "A String", # The localized strings for playlist's description.
227          "title": "A String", # The localized strings for playlist's title.
228        },
229        "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
230          "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
231            "url": "A String", # The thumbnail image's URL.
232            "width": 42, # (Optional) Width of the thumbnail image.
233            "height": 42, # (Optional) Height of the thumbnail image.
234          },
235          "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
236            "url": "A String", # The thumbnail image's URL.
237            "width": 42, # (Optional) Width of the thumbnail image.
238            "height": 42, # (Optional) Height of the thumbnail image.
239          },
240          "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
241            "url": "A String", # The thumbnail image's URL.
242            "width": 42, # (Optional) Width of the thumbnail image.
243            "height": 42, # (Optional) Height of the thumbnail image.
244          },
245          "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
246            "url": "A String", # The thumbnail image's URL.
247            "width": 42, # (Optional) Width of the thumbnail image.
248            "height": 42, # (Optional) Height of the thumbnail image.
249          },
250          "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
251            "url": "A String", # The thumbnail image's URL.
252            "width": 42, # (Optional) Width of the thumbnail image.
253            "height": 42, # (Optional) Height of the thumbnail image.
254          },
255        },
256      },
257      "player": { # The player object contains information that you would use to play the playlist in an embedded player.
258        "embedHtml": "A String", # An <iframe> tag that embeds a player that will play the playlist.
259      },
260      "etag": "A String", # Etag of this resource.
261      "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
262      "localizations": { # Localizations for different languages
263        "a_key": { # Playlist localization setting # The language tag, using string since map_key require simple types.
264          "description": "A String", # The localized strings for playlist's description.
265          "title": "A String", # The localized strings for playlist's title.
266        },
267      },
268    }</pre>
269</div>
270
271<div class="method">
272    <code class="details" id="list">list(part, onBehalfOfContentOwner=None, pageToken=None, onBehalfOfContentOwnerChannel=None, hl=None, channelId=None, mine=None, maxResults=None, id=None)</code>
273  <pre>Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.
274
275Args:
276  part: string, The part parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include.
277
278If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set part=snippet, the API response will contain all of those properties. (required)
279  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
280
281The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
282  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.
283  onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
284
285The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.
286
287This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
288  hl: string, The hl parameter should be used for filter out the properties that are not in the given language. Used for the snippet part.
289  channelId: string, This value indicates that the API should only return the specified channel's playlists.
290  mine: boolean, Set this parameter's value to true to instruct the API to only return playlists owned by the authenticated user.
291  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
292  id: string, The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. In a playlist resource, the id property specifies the playlist's YouTube playlist ID.
293
294Returns:
295  An object of the form:
296
297    {
298    "eventId": "A String", # Serialized EventId of the request which produced this response.
299    "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.
300    "kind": "youtube#playlistListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlistListResponse".
301    "visitorId": "A String", # The visitorId identifies the visitor.
302    "items": [ # A list of playlists that match the request criteria.
303      { # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
304            #
305            # YouTube also uses playlists to identify special collections of videos for a channel, such as:
306            # - uploaded videos
307            # - favorite videos
308            # - positively rated (liked) videos
309            # - watch history
310            # - watch later  To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the  channel resource for a given channel.
311            #
312            # You can then use the   playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the   playlistItems.insert and   playlistItems.delete methods.
313          "status": { # The status object contains status information for the playlist.
314            "privacyStatus": "A String", # The playlist's privacy status.
315          },
316          "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
317          "contentDetails": { # The contentDetails object contains information like video count.
318            "itemCount": 42, # The number of videos in the playlist.
319          },
320          "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
321            "description": "A String", # The playlist's description.
322            "tags": [ # Keyword tags associated with the playlist.
323              "A String",
324            ],
325            "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
326            "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
327            "channelTitle": "A String", # The channel title of the channel that the video belongs to.
328            "title": "A String", # The playlist's title.
329            "defaultLanguage": "A String", # The language of the playlist's default title and description.
330            "localized": { # Playlist localization setting # Localized title and description, read-only.
331              "description": "A String", # The localized strings for playlist's description.
332              "title": "A String", # The localized strings for playlist's title.
333            },
334            "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
335              "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
336                "url": "A String", # The thumbnail image's URL.
337                "width": 42, # (Optional) Width of the thumbnail image.
338                "height": 42, # (Optional) Height of the thumbnail image.
339              },
340              "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
341                "url": "A String", # The thumbnail image's URL.
342                "width": 42, # (Optional) Width of the thumbnail image.
343                "height": 42, # (Optional) Height of the thumbnail image.
344              },
345              "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
346                "url": "A String", # The thumbnail image's URL.
347                "width": 42, # (Optional) Width of the thumbnail image.
348                "height": 42, # (Optional) Height of the thumbnail image.
349              },
350              "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
351                "url": "A String", # The thumbnail image's URL.
352                "width": 42, # (Optional) Width of the thumbnail image.
353                "height": 42, # (Optional) Height of the thumbnail image.
354              },
355              "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
356                "url": "A String", # The thumbnail image's URL.
357                "width": 42, # (Optional) Width of the thumbnail image.
358                "height": 42, # (Optional) Height of the thumbnail image.
359              },
360            },
361          },
362          "player": { # The player object contains information that you would use to play the playlist in an embedded player.
363            "embedHtml": "A String", # An <iframe> tag that embeds a player that will play the playlist.
364          },
365          "etag": "A String", # Etag of this resource.
366          "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
367          "localizations": { # Localizations for different languages
368            "a_key": { # Playlist localization setting # The language tag, using string since map_key require simple types.
369              "description": "A String", # The localized strings for playlist's description.
370              "title": "A String", # The localized strings for playlist's title.
371            },
372          },
373        },
374    ],
375    "tokenPagination": { # Stub token pagination template to suppress results.
376    },
377    "etag": "A String", # Etag of this resource.
378    "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
379    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
380      "totalResults": 42, # The total number of results in the result set.
381      "resultsPerPage": 42, # The number of results included in the API response.
382    },
383  }</pre>
384</div>
385
386<div class="method">
387    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
388  <pre>Retrieves the next page of results.
389
390Args:
391  previous_request: The request for the previous page. (required)
392  previous_response: The response from the request for the previous page. (required)
393
394Returns:
395  A request object that you can call 'execute()' on to request the next
396  page. Returns None if there are no more items in the collection.
397    </pre>
398</div>
399
400<div class="method">
401    <code class="details" id="update">update(part, body, onBehalfOfContentOwner=None)</code>
402  <pre>Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.
403
404Args:
405  part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
406
407Note that this method will override the existing values for mutable properties that are contained in any parts that the request body specifies. For example, a playlist's description is contained in the snippet part, which must be included in the request body. If the request does not specify a value for the snippet.description property, the playlist's existing description will be deleted. (required)
408  body: object, The request body. (required)
409    The object takes the form of:
410
411{ # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
412      #
413      # YouTube also uses playlists to identify special collections of videos for a channel, such as:
414      # - uploaded videos
415      # - favorite videos
416      # - positively rated (liked) videos
417      # - watch history
418      # - watch later  To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the  channel resource for a given channel.
419      #
420      # You can then use the   playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the   playlistItems.insert and   playlistItems.delete methods.
421    "status": { # The status object contains status information for the playlist.
422      "privacyStatus": "A String", # The playlist's privacy status.
423    },
424    "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
425    "contentDetails": { # The contentDetails object contains information like video count.
426      "itemCount": 42, # The number of videos in the playlist.
427    },
428    "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
429      "description": "A String", # The playlist's description.
430      "tags": [ # Keyword tags associated with the playlist.
431        "A String",
432      ],
433      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
434      "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
435      "channelTitle": "A String", # The channel title of the channel that the video belongs to.
436      "title": "A String", # The playlist's title.
437      "defaultLanguage": "A String", # The language of the playlist's default title and description.
438      "localized": { # Playlist localization setting # Localized title and description, read-only.
439        "description": "A String", # The localized strings for playlist's description.
440        "title": "A String", # The localized strings for playlist's title.
441      },
442      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
443        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
444          "url": "A String", # The thumbnail image's URL.
445          "width": 42, # (Optional) Width of the thumbnail image.
446          "height": 42, # (Optional) Height of the thumbnail image.
447        },
448        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
449          "url": "A String", # The thumbnail image's URL.
450          "width": 42, # (Optional) Width of the thumbnail image.
451          "height": 42, # (Optional) Height of the thumbnail image.
452        },
453        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
454          "url": "A String", # The thumbnail image's URL.
455          "width": 42, # (Optional) Width of the thumbnail image.
456          "height": 42, # (Optional) Height of the thumbnail image.
457        },
458        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
459          "url": "A String", # The thumbnail image's URL.
460          "width": 42, # (Optional) Width of the thumbnail image.
461          "height": 42, # (Optional) Height of the thumbnail image.
462        },
463        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
464          "url": "A String", # The thumbnail image's URL.
465          "width": 42, # (Optional) Width of the thumbnail image.
466          "height": 42, # (Optional) Height of the thumbnail image.
467        },
468      },
469    },
470    "player": { # The player object contains information that you would use to play the playlist in an embedded player.
471      "embedHtml": "A String", # An <iframe> tag that embeds a player that will play the playlist.
472    },
473    "etag": "A String", # Etag of this resource.
474    "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
475    "localizations": { # Localizations for different languages
476      "a_key": { # Playlist localization setting # The language tag, using string since map_key require simple types.
477        "description": "A String", # The localized strings for playlist's description.
478        "title": "A String", # The localized strings for playlist's title.
479      },
480    },
481  }
482
483  onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners.
484
485The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
486
487Returns:
488  An object of the form:
489
490    { # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
491        #
492        # YouTube also uses playlists to identify special collections of videos for a channel, such as:
493        # - uploaded videos
494        # - favorite videos
495        # - positively rated (liked) videos
496        # - watch history
497        # - watch later  To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the  channel resource for a given channel.
498        #
499        # You can then use the   playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the   playlistItems.insert and   playlistItems.delete methods.
500      "status": { # The status object contains status information for the playlist.
501        "privacyStatus": "A String", # The playlist's privacy status.
502      },
503      "kind": "youtube#playlist", # Identifies what kind of resource this is. Value: the fixed string "youtube#playlist".
504      "contentDetails": { # The contentDetails object contains information like video count.
505        "itemCount": 42, # The number of videos in the playlist.
506      },
507      "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
508        "description": "A String", # The playlist's description.
509        "tags": [ # Keyword tags associated with the playlist.
510          "A String",
511        ],
512        "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
513        "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
514        "channelTitle": "A String", # The channel title of the channel that the video belongs to.
515        "title": "A String", # The playlist's title.
516        "defaultLanguage": "A String", # The language of the playlist's default title and description.
517        "localized": { # Playlist localization setting # Localized title and description, read-only.
518          "description": "A String", # The localized strings for playlist's description.
519          "title": "A String", # The localized strings for playlist's title.
520        },
521        "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
522          "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
523            "url": "A String", # The thumbnail image's URL.
524            "width": 42, # (Optional) Width of the thumbnail image.
525            "height": 42, # (Optional) Height of the thumbnail image.
526          },
527          "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
528            "url": "A String", # The thumbnail image's URL.
529            "width": 42, # (Optional) Width of the thumbnail image.
530            "height": 42, # (Optional) Height of the thumbnail image.
531          },
532          "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
533            "url": "A String", # The thumbnail image's URL.
534            "width": 42, # (Optional) Width of the thumbnail image.
535            "height": 42, # (Optional) Height of the thumbnail image.
536          },
537          "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
538            "url": "A String", # The thumbnail image's URL.
539            "width": 42, # (Optional) Width of the thumbnail image.
540            "height": 42, # (Optional) Height of the thumbnail image.
541          },
542          "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
543            "url": "A String", # The thumbnail image's URL.
544            "width": 42, # (Optional) Width of the thumbnail image.
545            "height": 42, # (Optional) Height of the thumbnail image.
546          },
547        },
548      },
549      "player": { # The player object contains information that you would use to play the playlist in an embedded player.
550        "embedHtml": "A String", # An <iframe> tag that embeds a player that will play the playlist.
551      },
552      "etag": "A String", # Etag of this resource.
553      "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
554      "localizations": { # Localizations for different languages
555        "a_key": { # Playlist localization setting # The language tag, using string since map_key require simple types.
556          "description": "A String", # The localized strings for playlist's description.
557          "title": "A String", # The localized strings for playlist's title.
558        },
559      },
560    }</pre>
561</div>
562
563</body></html>