YouTube Data API v3 . videoCategories

Instance Methods

close()

Close httplib2 connections.

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

Retrieves a list of resources, possibly filtered.

Method Details

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

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

Returns:
  An object of the form:

    {
  "etag": "A String", # Etag of this resource.
  "eventId": "A String", # Serialized EventId of the request which produced this response.
  "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.
    { # A *videoCategory* resource identifies a category that has been or could be associated with uploaded videos.
      "etag": "A String", # Etag of this resource.
      "id": "A String", # The ID that YouTube uses to uniquely identify the video category.
      "kind": "youtube#videoCategory", # Identifies what kind of resource this is. Value: the fixed string "youtube#videoCategory".
      "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.
        "assignable": True or False,
        "channelId": "UCBR8-60-B28hp2BmDPdntcQ", # The YouTube channel that created the video category.
        "title": "A String", # The video category's title.
      },
    },
  ],
  "kind": "youtube#videoCategoryListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#videoCategoryListResponse".
  "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.
  "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # General pagination information.
    "resultsPerPage": 42, # The number of results included in the API response.
    "totalResults": 42, # The total number of results in the result set.
  },
  "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.
  "tokenPagination": { # Stub token pagination template to suppress results.
  },
  "visitorId": "A String", # The visitorId identifies the visitor.
}