ตารางด้านล่างแสดง Use Case ที่พบบ่อยสําหรับวิธีนี้ คุณคลิกชื่อ Use Case เพื่อโหลดค่าพารามิเตอร์ตัวอย่างใน API Explorer ได้ หรือดูตัวอย่างโค้ดสำหรับ Use Case ใน API Explorer แบบเต็มหน้าจอได้โดยคลิกไอคอนโค้ดใต้ชื่อ Use Case คุณสามารถอัปเดตพารามิเตอร์และค่าพร็อพเพอร์ตี้ได้ใน UI แบบเต็มหน้าจอ และตัวอย่างโค้ดจะอัปเดตแบบไดนามิกเพื่อแสดงค่าที่คุณป้อน

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.