VideoCategories

  • A videoCategory resource in the YouTube API defines a category that can be associated with uploaded videos.

  • The API's videoCategories list method returns a list of categories applicable to YouTube videos.

  • Each videoCategory resource includes an ID, a title, and information about whether the category is assignable to videos.

  • The snippet section within a videoCategory resource provides basic details such as the channel that created it and its title.

  • The kind property of the resource is always a string that identifies the resource type as youtube#videoCategory.

A videoCategory resource identifies a category that has been or could be associated with uploaded videos.

Methods

The API supports the following methods for videoCategories resources:

list
Returns a list of categories that can be associated with YouTube videos. Try it now.

Resource representation

The following JSON structure shows the format of a videoCategories resource:

{
"kind":"youtube#videoCategory",
"etag":etag,
"id":string,
"snippet":{
"channelId":"UCBR8-60-B28hp2BmDPdntcQ",
"title":string,
"assignable":boolean
}
}

Properties

The following table defines the properties that appear in this resource:

Properties
kind string
Identifies the API resource's type. The value will be youtube#videoCategory.
etag etag
The Etag of this resource.
id string
The ID that YouTube uses to uniquely identify the video category.
snippet object
The snippet object contains basic details about the video category, including its title.
snippet.channelId string
The YouTube channel that created the video category.
snippet.title string
The video category's title.
snippet.assignable boolean
Indicates whether videos can be associated with the category.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月28日 UTC.