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.videoCategories.html">videoCategories</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#list">list(part, regionCode=None, hl=None, id=None)</a></code></p> 79<p class="firstline">Returns a list of categories that can be associated with YouTube videos.</p> 80<h3>Method Details</h3> 81<div class="method"> 82 <code class="details" id="list">list(part, regionCode=None, hl=None, id=None)</code> 83 <pre>Returns a list of categories that can be associated with YouTube videos. 84 85Args: 86 part: string, The part parameter specifies the videoCategory resource properties that the API response will include. Set the parameter value to snippet. (required) 87 regionCode: string, The regionCode parameter instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. 88 hl: string, The hl parameter specifies the language that should be used for text values in the API response. 89 id: string, The id parameter specifies a comma-separated list of video category IDs for the resources that you are retrieving. 90 91Returns: 92 An object of the form: 93 94 { 95 "eventId": "A String", # Serialized EventId of the request which produced this response. 96 "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. 97 "kind": "youtube#videoCategoryListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#videoCategoryListResponse". 98 "visitorId": "A String", # The visitorId identifies the visitor. 99 "items": [ # A list of video categories that can be associated with YouTube videos. In this map, the video category ID is the map key, and its value is the corresponding videoCategory resource. 100 { # A videoCategory resource identifies a category that has been or could be associated with uploaded videos. 101 "snippet": { # Basic details about a video category, such as its localized title. # The snippet object contains basic details about the video category, including its title. 102 "assignable": True or False, 103 "channelId": "UCBR8-60-B28hp2BmDPdntcQ", # The YouTube channel that created the video category. 104 "title": "A String", # The video category's title. 105 }, 106 "kind": "youtube#videoCategory", # Identifies what kind of resource this is. Value: the fixed string "youtube#videoCategory". 107 "etag": "A String", # Etag of this resource. 108 "id": "A String", # The ID that YouTube uses to uniquely identify the video category. 109 }, 110 ], 111 "tokenPagination": { # Stub token pagination template to suppress results. 112 }, 113 "etag": "A String", # Etag of this resource. 114 "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. 115 "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. 116 "totalResults": 42, # The total number of results in the result set. 117 "resultsPerPage": 42, # The number of results included in the API response. 118 }, 119 }</pre> 120</div> 121 122</body></html>