เรากำลังอัปเดต Data API ให้สอดคล้องกับวิธีที่ YouTube นับยอดดูสำหรับ Shorts
ดูข้อมูลเพิ่มเติม
VideoCategories
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร videoCategory
ระบุหมวดหมู่ที่เคยหรืออาจเชื่อมโยงกับวิดีโอที่อัปโหลด
วิธีการ
API รองรับเมธอดต่อไปนี้สำหรับทรัพยากร videoCategories
รายการ
- list
- แสดงรายการหมวดหมู่ที่เชื่อมโยงกับวิดีโอ YouTube ได้
ลองใช้เลย
การนำเสนอทรัพยากร
โครงสร้าง JSON ต่อไปนี้แสดงรูปแบบของทรัพยากร videoCategories
{
"kind": "youtube#videoCategory",
"etag": etag,
"id": string,
"snippet": {
"channelId": "UCBR8-60-B28hp2BmDPdntcQ",
"title": string,
"assignable": boolean
}
}
พร็อพเพอร์ตี้
ตารางต่อไปนี้จะกำหนดพร็อพเพอร์ตี้ที่ปรากฏในทรัพยากรนี้
พร็อพเพอร์ตี้ |
kind |
string
ระบุประเภทของทรัพยากร API ค่าจะเป็น youtube#videoCategory |
etag |
etag
Etag ของแหล่งข้อมูลนี้ |
id |
string
รหัสที่ YouTube ใช้เพื่อระบุหมวดหมู่วิดีโอโดยไม่ซ้ำกัน |
snippet |
object
ออบเจ็กต์ snippet มีรายละเอียดพื้นฐานเกี่ยวกับหมวดหมู่วิดีโอ รวมถึงชื่อวิดีโอ |
snippet.channelId |
string
ช่อง YouTube ที่สร้างหมวดหมู่วิดีโอ |
snippet.title |
string
ชื่อหมวดหมู่วิดีโอ |
snippet.assignable |
boolean
ระบุว่าวิดีโอเชื่อมโยงกับหมวดหมู่ได้หรือไม่ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-04-26 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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"]]