La tabella seguente mostra casi d'uso comuni per questo metodo. Puoi fare clic sul nome di un caso d'uso per caricare valori parametro di esempio in Explorer API. In alternativa, puoi vedere gli esempi di codice per un caso d'uso nell'Explorer API a schermo intero facendo clic sull'icona del codice sotto il nome di un caso d'uso. Nell'interfaccia utente a schermo intero, puoi aggiornare i valori dei parametri e delle proprietà e gli esempi di codice verranno aggiornati in modo dinamico per riflettere i valori inseriti.

Use cases
list
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list' example for the videoCategories.list method.
This example retrieves a list of categories that can be associated with YouTube videos in the United States. The regionCode parameter specifies the country for which categories are being retrieved.
list (for a specific region)
Code symbol that, when clicked, opens the fullscreen APIs Explorer widget and populates it with values for the 'list (for a specific region)' example for the videoCategories.list method.
This example uses the regionCode to retrieve a list of categories that can be associated with YouTube videos in Spain. It also uses the hl parameter to indicate that text labels in the response should be specified in Spanish.