VideoCategories
Resource videoCategory
mengidentifikasi kategori yang telah atau dapat dikaitkan dengan video yang diupload.
Metode
API ini mendukung metode berikut untuk resource videoCategories
:
- list
- Menampilkan daftar kategori yang dapat dikaitkan dengan video YouTube.
Coba sekarang.
Representasi resource
Struktur JSON berikut menampilkan format resource videoCategories
:
{
"kind": "youtube#videoCategory",
"etag": etag,
"id": string,
"snippet": {
"channelId": "UCBR8-60-B28hp2BmDPdntcQ",
"title": string,
"assignable": boolean
}
}
Properti
Tabel berikut mendefinisikan properti yang muncul di resource ini:
Properti |
kind |
string
Mengidentifikasi jenis resource API. Nilainya akan berupa youtube#videoCategory . |
etag |
etag
Etag resource ini. |
id |
string
ID yang digunakan YouTube untuk mengidentifikasi kategori video secara unik. |
snippet |
object
Objek snippet berisi detail dasar tentang kategori video, termasuk judulnya. |
snippet.channelId |
string
Channel YouTube yang membuat kategori video. |
snippet.title |
string
Judul kategori video. |
snippet.assignable |
boolean
Menunjukkan apakah video dapat dikaitkan dengan kategori tertentu. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-04-26 UTC.
[null,null,["Terakhir diperbarui pada 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"]]