YouTube Group Items API

The Group Items API from YouTube — 1 operation(s) for group items.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /v2/groupItems Remove an item from a group · Delete groupItems #
Ask an LLM
“How do I take a video out of a group?”
“Can I remove a group item by its ID?”
Tell an agent destructive · confirm first
Remove group item {id}.
Take {id} out of its group.
GET /v2/groupItems List items in a group · List groupItems #
Ask an LLM
“What videos or channels are in a particular group?”
“Can I list group items for one group?”
Tell an agent
List items in group {groupId}.
Show the group items for group {groupId}.
POST /v2/groupItems Add an item to a group · Insert groupItems #
Ask an LLM
“How do I add a video to a group?”
“Can I put a channel into a group?”
Tell an agent
Add item {id} to group {groupId}.
Put {id} into group {groupId}.

Documentation

📖
Documentation
https://developers.google.com/youtube/v3/docs/activities/list
📖
GettingStarted
https://developers.google.com/youtube/v3/getting-started
📖
Authentication
https://developers.google.com/youtube/v3/guides/authentication
📖
Documentation
https://developers.google.com/youtube/v3/docs/channels/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/comments/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/commentThreads/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlists/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlistItems/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/search/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/subscriptions/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/videos/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/captions
📖
Documentation
https://developers.google.com/youtube/v3/docs/videoCategories
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nLanguages
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nRegions
📖
Documentation
https://developers.google.com/youtube/analytics
📖
GettingStarted
https://developers.google.com/youtube/reporting/guides/authorization
📖
APIReference
https://developers.google.com/youtube/analytics/reference
📖
Authentication
https://developers.google.com/youtube/reporting/guides/authorization
📖
Documentation
https://developers.google.com/youtube/reporting
📖
APIReference
https://developers.google.com/youtube/reporting/v1/reference/rest
📖
Documentation
https://developers.google.com/youtube/reporting/v1/reports
📖
GettingStarted
https://developers.google.com/youtube/v3/live/getting-started
📖
Documentation
https://developers.google.com/youtube/v3/live/docs
📖
APIReference
https://developers.google.com/youtube/v3/live/docs

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/youtube:youtube-group-items-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

youtube-group-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Analytics Group Items API
  version: v2
  description: Generated from Google's published Discovery document for YouTube Analytics API (youtubeAnalytics v2, revision 20261110). 3 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtubeanalytics.googleapis.com
tags:
- name: Group Items
paths:
  /v2/groupItems:
    delete:
      operationId: youtubeAnalytics.groupItems.delete
      summary: Delete groupItems
      description: Removes an item from a group.
      parameters:
      - name: id
        in: query
        required: false
        description: The `id` parameter specifies the YouTube group item ID of the group item that is being deleted.
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube
        - https://www.googleapis.com/auth/youtube.readonly
        - https://www.googleapis.com/auth/youtubepartner
        - https://www.googleapis.com/auth/yt-analytics-monetary.readonly
        - https://www.googleapis.com/auth/yt-analytics.readonly
      - apiKey: []
      tags:
      - Group Items
    get:
      operationId: youtubeAnalytics.groupItems.list
      summary: List groupItems
      description: Returns a collection of group items that match the API request parameters.
      parameters:
      - name: groupId
        in: query
        required: false
        description: The `groupId` parameter specifies the unique ID of the group for which you want to retrieve group items.
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListGroupItemsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube
        - https://www.googleapis.com/auth/youtube.readonly
        - https://www.googleapis.com/auth/youtubepartner
        - https://www.googleapis.com/auth/yt-analytics-monetary.readonly
        - https://www.googleapis.com/auth/yt-analytics.readonly
      - apiKey: []
      tags:
      - Group Items
    post:
      operationId: youtubeAnalytics.groupItems.insert
      summary: Insert groupItems
      description: Creates a group item.
      parameters:
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupItem'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupItem'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube
        - https://www.googleapis.com/auth/youtube.readonly
        - https://www.googleapis.com/auth/youtubepartner
        - https://www.googleapis.com/auth/yt-analytics-monetary.readonly
        - https://www.googleapis.com/auth/yt-analytics.readonly
      - apiKey: []
      tags:
      - Group Items
components:
  schemas:
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    EmptyResponse:
      type: object
      description: Empty response.
      properties:
        errors:
          $ref: '#/components/schemas/Errors'
          description: Apiary error details
    Errors:
      properties:
        requestId:
          description: Request identifier generated by the service, which can be used to identify the error in the logs
          type: string
        error:
          type: array
          description: Specific error description and codes
          items:
            $ref: '#/components/schemas/ErrorProto'
        code:
          enum:
          - BAD_REQUEST
          - FORBIDDEN
          - NOT_FOUND
          - CONFLICT
          - GONE
          - PRECONDITION_FAILED
          - INTERNAL_ERROR
          - SERVICE_UNAVAILABLE
          description: Global error code. Deprecated and ignored. Set custom error codes in ErrorProto.domain and ErrorProto.code instead.
          type: string
          deprecated: true
      type: object
      description: Request Error information. The presence of an error field signals that the operation has failed.
    GroupItem:
      properties:
        resource:
          $ref: '#/components/schemas/GroupItemResource'
          description: The `resource` object contains information that identifies the item being added to the group.
        groupId:
          type: string
          description: The ID that YouTube uses to uniquely identify the group that contains the item.
        id:
          description: 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.
          type: string
        errors:
          $ref: '#/components/schemas/Errors'
          description: Apiary error details
        etag:
          description: The Etag of this resource.
          type: string
        kind:
          type: string
          description: Identifies the API resource's type. The value will be `youtube#groupItem`.
      type: object
      description: A group item.
    GroupItemResource:
      type: object
      properties:
        kind:
          type: string
          description: 'Identifies the type of resource being added to the group. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`'
        id:
          type: string
          description: The channel, video, playlist, or asset ID that YouTube uses to uniquely identify the item that is being added to the group.
    ListGroupItemsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/GroupItem'
          description: A list of groups that match the API request parameters. Each item in the list represents a `groupItem` resource.
          type: array
        errors:
          $ref: '#/components/schemas/Errors'
          description: Apiary error details
        etag:
          description: The Etag of this resource.
          type: string
        kind:
          description: Identifies the API resource's type. The value will be `youtube#groupItemListResponse`.
          type: string
      type: object
      description: Response message for GroupsService.ListGroupItems.
    ErrorProto:
      type: object
      properties:
        domain:
          type: string
          description: 'Error domain. RoSy services can define their own domain and error codes. This should normally be the name of an enum type, such as: gdata.CoreErrorDomain'
        externalErrorMessage:
          description: A short explanation for the error, which can be shared outside Google. Please set domain, code and arguments whenever possible instead of this error message so that external APIs can build safe error messages themselves. External messages built in a RoSy interface will most likely refer to information and concepts that are not available externally and should not be exposed. It is safer if external APIs can understand the errors and decide what the error message should look like.
          type: string
        location:
          description: 'Location of the error, as specified by the location type. If location_type is PATH, this should be a path to a field that''s relative to the request, using FieldPath notation (net/proto2/util/public/field_path.h). Examples: authenticated_user.gaia_id resource.address[2].country'
          type: string
        debugInfo:
          description: Debugging information, which should not be shared externally.
          type: string
        argument:
          type: array
          items:
            type: string
          description: Error arguments, to be used when building user-friendly error messages given the error domain and code. Different error codes require different arguments.
        locationType:
          enum:
          - PATH
          - OTHER
          - PARAMETER
          type: string
        code:
          description: Error code in the error domain. This should correspond to a value of the enum type whose name is in domain. See the core error domain in error_domain.proto.
          type: string
      description: Describes one specific error.
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/yt-analytics.readonly: View YouTube Analytics reports for your YouTube content
            https://www.googleapis.com/auth/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/yt-analytics-monetary.readonly: View monetary and non-monetary YouTube Analytics reports for your YouTube content
externalDocs:
  url: https://developers.google.com/youtube/analytics
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtubeanalytics.googleapis.com/$discovery/rest?version=v2
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)