GroupItems
Stay organized with collections
Save and categorize content based on your preferences.
Methods
The API supports the following methods for groupItems
resources:
- list
- Returns a collection of group items that match the API request parameters.
Try it now.
- insert
- Creates a group item.
Try it now.
- delete
- Removes an item from a group.
Try it now.
Resource representation
The JSON structure below shows the format of a groupItems
resource:
{
"kind": "youtube#groupItem",
"etag": etag,
"id": string,
"groupId": string,
"resource": {
"kind": string,
"id": string
}
}
Properties
The following table defines the properties that appear in this resource:
Properties |
kind |
string
Identifies the API resource's type. The value will be youtube#groupItem . |
etag |
etag
The Etag of this resource. |
id |
string
The ID that YouTube uses to uniquely identify the channel , video , playlist , or asset resource that is included in the group. Note that this ID refers specifically to the inclusion of that resource in a particular group and is different than the channel ID, video ID, playlist ID, or asset ID that uniquely identifies the resource itself. The resource.id property's value specifies the unique channel, video, playlist, or asset ID. |
groupId |
string
The ID that YouTube uses to uniquely identify the group that contains the item. |
resource |
object
The resource object contains information that identifies the item being added to the group. |
resource.kind |
string
Identifies the type of resource being added to the group.
Valid values for this property are:
youtube#channel
youtube#playlist
youtube#video
youtubePartner#asset
|
resource.id |
string
The channel, video, playlist, or asset ID that YouTube uses to uniquely identify the item that is being added to the group. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-06 UTC."],[[["The YouTube Analytics API provides methods to manage group items, enabling you to list, insert, and delete them within groups."],["Group items associate a YouTube resource like a channel, video, or playlist with a specific group for analysis."],["Each group item is uniquely identified by an ID and contains information about the resource it links to and the group it belongs to."],["The API uses a JSON structure to represent group items, including properties like `kind`, `etag`, `id`, `groupId`, and `resource`."],["The `resource` property within a group item further specifies the type and unique ID of the linked YouTube resource (channel, video, playlist, or asset)."]]],["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"]]