YouTube API . videoCategories

Instance Methods

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

Browse list of video categories.

Method Details

list(part, onBehalfOfContentOwner=None, regionCode=None, hl=None, id=None)
Browse list of video categories.

Args:
  part: string, Video category parts to include in the returned response. Valid values are: id and snippet. (required)
  onBehalfOfContentOwner: string, The authenticated user acts on behalf of this content owner.
  regionCode: string, Return all the categories in this region.
  hl: string, Language used for the title of the categories.
  id: string, IDs of the categories to be returned.

Returns:
  An object of the form:

    { # A paginated list of video categories returned as the response to a youtube.videoCategory.list call.
    "items": [ # List of video categories matching the request criteria.
      { # A videoCategory 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. # Basic details about the video category.
          "channelId": "UCBR8-60-B28hp2BmDPdntcQ", # Channel publishing the video category.
          "title": "A String", # Title of the video category.
        },
        "kind": "youtube#videoCategory", # The type of this API resource.
        "etag": "A String", # The eTag of the video.
        "id": "A String", # The unique id of the video category.
      },
    ],
    "kind": "youtube#videoCategoryListResponse", # The type of this API response.
    "etag": "A String", # The eTag of the response.
  }