YouTube Data API v3 . videoCategories

Instance Methods

list(part, regionCode=None, hl=None, id=None, x__xgafv=None)

Retrieves a list of resources, possibly filtered.

Method Details

list(part, regionCode=None, hl=None, id=None, x__xgafv=None)
Retrieves a list of resources, possibly filtered.

Args:
  part: string, The <code><strong>part</strong></code> parameter specifies the
<code>videoCategory</code> resource properties that the API response will
include. Set the parameter value to <code>snippet</code>. (required) (repeated)
  regionCode: string, A parameter
  hl: string, A parameter
  id: string, Returns the video categories with the given IDs for Stubby or Apiary. (repeated)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
    "prevPageToken": "A String", # The token that can be used as the value of the <code>pageToken</code>
        # parameter to retrieve the previous page in the result set.
    "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 <code>videoCategory</code> resource.
      { # A <code><strong>videoCategory</strong></code> resource identifies a
          # category that has been or could be associated with uploaded videos.
        "snippet": { # Basic details about a video category, such as its localized title. # The <code>snippet</code> object contains basic details about the video
            # category, including its title.
          "assignable": True or False,
          "title": "A String", # The video category's title.
          "channelId": "A String", # The YouTube channel that created the video category.
        },
        "kind": "youtube#videoCategory", # Identifies what kind of resource this is. Value: the fixed string
            # <code>"youtube#videoCategory"</code>.
        "etag": "A String", # Etag of this resource.
        "id": "A String", # The ID that YouTube uses to uniquely identify the video category.
      },
    ],
    "nextPageToken": "A String", # The token that can be used as the value of the <code>pageToken</code>
        # parameter to retrieve the next page in the result set.
    "etag": "A String", # Etag of this resource.
    "visitorId": "A String", # The <code>visitorId</code> identifies the visitor.
    "kind": "youtube#videoCategoryListResponse", # Identifies what kind of resource this is. Value: the fixed string
        # <code>"youtube#videoCategoryListResponse"</code>.
    "tokenPagination": { # Stub token pagination template to suppress results.
    },
    "eventId": "A String", # Serialized EventId of the request which produced this response.
    "pageInfo": { # Paging details for lists of resources, including total number of items # General pagination information.
        # available and number of resources returned in a single page.
      "resultsPerPage": 42, # The number of results included in the API response.
      "totalResults": 42, # The total number of results in the result set.
    },
  }