VideoCategories
Una risorsa videoCategory
identifica una categoria che è stata o potrebbe essere associata ai video caricati.
Metodi
L'API supporta i seguenti metodi per le risorse videoCategories
:
- list
- Restituisce un elenco di categorie che è possibile associare ai video di YouTube.
Prova subito.
Rappresentazione delle risorse
La seguente struttura JSON mostra il formato di una risorsa videoCategories
:
{
"kind": "youtube#videoCategory",
"etag": etag,
"id": string,
"snippet": {
"channelId": "UCBR8-60-B28hp2BmDPdntcQ",
"title": string,
"assignable": boolean
}
}
Proprietà
La tabella seguente definisce le proprietà visualizzate in questa risorsa:
Proprietà |
kind |
string
Identifica il tipo di risorsa API. Il valore sarà youtube#videoCategory . |
etag |
etag
L'Etag di questa risorsa. |
id |
string
L'ID utilizzato da YouTube per identificare in modo univoco la categoria del video. |
snippet |
object
L'oggetto snippet contiene i dettagli di base sulla categoria del video, tra cui il titolo. |
snippet.channelId |
string
Il canale YouTube che ha creato la categoria del video. |
snippet.title |
string
Il titolo della categoria del video. |
snippet.assignable |
boolean
Indica se i video possono essere associati alla categoria. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-04-26 UTC.
[null,null,["Ultimo aggiornamento 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"]]