В таблице ниже показаны распространенные случаи использования этого метода. Вы можете щелкнуть имя варианта использования, чтобы загрузить образцы значений параметров в проводник API. Или вы можете просмотреть примеры кода для варианта использования в полноэкранном проводнике API, щелкнув значок кода под именем варианта использования. В полноэкранном пользовательском интерфейсе вы можете обновлять значения параметров и свойств, а примеры кода будут динамически обновляться в соответствии с введенными вами значениями.

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.