GroupItems
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
    
  
      
    
  
  
  
  
  
  
    
    
    
    
    
資源表示法
以下 JSON 結構顯示 groupItems 資源的格式:
{
  "kind": "youtube#groupItem",
  "etag": etag,
  "id": string,
  "groupId": string,
  "resource": {
    "kind": string,
    "id": string
  }
}
屬性
下表定義了這個資源中顯示的屬性:
  
    
      | 屬性 | 
  
  
      
      | kind | string識別 API 資源的類型。值為
 youtube#groupItem。 | 
    
      | etag | etag這項資源的 Etag。
 | 
    
      | id | stringYouTube 會使用這個 ID 來識別群組中
 channel、video、playlist或asset資源。請注意,這個 ID 專門用於指稱特定群組中的資源,與用來識別資源本身的頻道 ID、影片 ID、播放清單 ID 或資產 ID 不同。resource.id屬性的值會指定專屬的頻道、影片、播放清單或資產 ID。 | 
    
      | groupId | stringYouTube 用來識別含有商品群組的專屬 ID。
 | 
    
      | resource | object
 resource物件包含可識別加入群組的項目資訊。 | 
    
      | resource.kind | string識別要加入群組的資源類型。
 
 這個屬性的有效值如下:
 
  youtube#channelyoutube#playlistyoutube#videoyoutubePartner#asset | 
    
      | resource.id | stringYouTube 用來識別要加入群組的項目的頻道、影片、播放清單或資產 ID。
 | 
  
     
  
  
  
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-08-21 (世界標準時間)。
  
  
  
    
      [[["容易理解","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"]],["上次更新時間:2025-08-21 (世界標準時間)。"],[],["The API for `groupItems` resources supports listing, inserting, and deleting items.  `groupItems` contain properties like `kind`, `etag`, `id`, and `groupId`. The `resource` object within a `groupItem` identifies the item, specifying its `kind` (channel, playlist, video, or asset) and its unique `id`. The `id` in groupItem identifies a specific resource within a group and is different than the resources' ID, while the `groupId` is the identifier for the group containing the item.\n"]]