Tabel di bawah menunjukkan kasus penggunaan umum untuk metode ini. Anda dapat mengklik nama kasus penggunaan untuk memuat nilai parameter contoh di APIs Explorer. Atau, Anda dapat melihat contoh kode untuk kasus penggunaan di APIs Explorer layar penuh dengan mengklik ikon kode di bawah nama kasus penggunaan. Di UI layar penuh, Anda dapat memperbarui nilai parameter dan properti, serta contoh kode akan diperbarui secara dinamis untuk mencerminkan nilai yang Anda masukkan.

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.