VideoCategories
videoCategory
リソースは、アップロードされた動画に関連付けられている、または関連付けられている可能性のあるカテゴリを識別します。
Methods
API は、videoCategories
リソースに対して次のメソッドをサポートしています。
- list
- YouTube 動画に関連付けることができるカテゴリのリストを返します。今すぐ試す
リソース表現
次の JSON 構造は、videoCategories
リソースの形式を示しています。
{
"kind": "youtube#videoCategory",
"etag": etag,
"id": string,
"snippet": {
"channelId": "UCBR8-60-B28hp2BmDPdntcQ",
"title": string,
"assignable": boolean
}
}
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
プロパティ |
kind |
string API リソースのタイプを識別します。値は youtube#videoCategory です。 |
etag |
etag このリソースの Etag。 |
id |
string
動画のカテゴリを一意に識別するために YouTube によって使用される ID。 |
snippet |
object
snippet オブジェクトには、タイトルなど、動画のカテゴリに関する基本情報が含まれます。 |
snippet.channelId |
string
動画カテゴリを作成した YouTube チャンネル。 |
snippet.title |
string
動画のカテゴリのタイトル。 |
snippet.assignable |
boolean
動画をカテゴリに関連付けることができるかどうかを示します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-04-26 UTC。
[null,null,["最終更新日 2024-04-26 UTC。"],[[["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`."]]],["The `videoCategory` resource identifies video categories for YouTube uploads. The API's `videoCategories.list` method retrieves a list of these categories. Each category is represented with a unique ID, title, and the channel ID that created it. The resource also includes an `assignable` property that indicates if videos can be linked to the specific category. The resource type is identified as `youtube#videoCategory`.\n"]]