YouTube Groups API

The Groups API from YouTube — 1 operation(s) for groups.

GitHub OpenAPI

Operations 4

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

POST /v2/groups Create an analytics group · Insert groups #
Ask an LLM
“How do I create a new analytics group?”
“Can I set a group's details when creating it?”
Tell an agent
Create analytics group {snippet}.
Create analytics group {snippet} with content details {contentDetails}.
PUT /v2/groups Update an analytics group · Update groups #
Ask an LLM
“How do I rename an analytics group?”
“Can I change a group's details?”
Tell an agent
Update analytics group {id} with snippet {snippet}.
Rename analytics group {id} to {snippet}.
GET /v2/groups List analytics groups · List groups #
Ask an LLM
“Which analytics groups does the authenticated user own?”
“Can I fetch a specific group by its ID?”
Tell an agent
List my analytics groups.
Get analytics group {id}.
DELETE /v2/groups Delete an analytics group · Delete groups #
Ask an LLM
“How do I delete an analytics group?”
“Can I remove a group by its ID?”
Tell an agent destructive · confirm first
Delete analytics group {id}.
Remove analytics group {id}.

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-groups-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-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Analytics Groups API
  version: v2
  description: Generated from Google's published Discovery document for YouTube Analytics API (youtubeAnalytics v2, revision 20261110). 4 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtubeanalytics.googleapis.com
tags:
- name: Groups
paths:
  /v2/groups:
    post:
      operationId: youtubeAnalytics.groups.insert
      summary: Insert groups
      description: Creates a group.
      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/Group'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        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:
      - Groups
    put:
      operationId: youtubeAnalytics.groups.update
      summary: Update groups
      description: Modifies a group. For example, you could change a group's title.
      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/Group'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
        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:
      - Groups
    get:
      operationId: youtubeAnalytics.groups.list
      summary: List groups
      description: Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs.
      parameters:
      - name: id
        in: query
        required: false
        description: The `id` parameter specifies a comma-separated list of the YouTube group ID(s) for the resource(s) that are being retrieved. Each group must be owned by the authenticated user. In a `group` resource, the `id` property specifies the group's YouTube group ID. Note that if you do not specify a value for the `id` parameter, then you must set the `mine` parameter to `true`.
        schema:
          type: string
      - name: mine
        in: query
        required: false
        description: This parameter can only be used in a properly authorized request. Set this parameter's value to true to retrieve all groups owned by the authenticated user.
        schema:
          type: boolean
      - 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
      - name: pageToken
        in: query
        required: false
        description: The `pageToken` parameter identifies a specific page in the result set that should be returned. In an API response, the `nextPageToken` property identifies the next page that can be retrieved.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListGroupsResponse'
        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:
      - Groups
    delete:
      operationId: youtubeAnalytics.groups.delete
      summary: Delete groups
      description: Deletes a group.
      parameters:
      - name: id
        in: query
        required: false
        description: The `id` parameter specifies the YouTube group ID of the group 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:
      - Groups
components:
  schemas:
    ListGroupsResponse:
      description: Response message for GroupsService.ListGroups.
      properties:
        items:
          description: A list of groups that match the API request parameters. Each item in the list represents a `group` resource.
          items:
            $ref: '#/components/schemas/Group'
          type: array
        errors:
          $ref: '#/components/schemas/Errors'
          description: Apiary error details
        nextPageToken:
          type: string
          description: The token that can be used as the value of the `pageToken` parameter to retrieve the next page in the result set.
        kind:
          description: Identifies the API resource's type. The value will be `youtube#groupListResponse`.
          type: string
        etag:
          type: string
          description: The Etag of this resource.
      type: object
    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
    GroupContentDetails:
      type: object
      description: A group's content details.
      properties:
        itemType:
          description: 'The type of resources that the group contains. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`'
          type: string
        itemCount:
          format: uint64
          description: The number of items in the group.
          type: string
    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.
    GroupSnippet:
      description: A group snippet.
      type: object
      properties:
        title:
          type: string
          description: The group name. The value must be a non-empty string.
        publishedAt:
          type: string
          description: The date and time that the group was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
          format: google-datetime
    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.
    Group:
      properties:
        snippet:
          $ref: '#/components/schemas/GroupSnippet'
          description: The `snippet` object contains basic information about the group, including its creation date and name.
        contentDetails:
          $ref: '#/components/schemas/GroupContentDetails'
          description: The `contentDetails` object contains additional information about the group, such as the number and type of items that it contains.
        kind:
          description: Identifies the API resource's type. The value will be `youtube#group`.
          type: string
        etag:
          description: The Etag of this resource.
          type: string
        errors:
          $ref: '#/components/schemas/Errors'
          description: Apiary error details
        id:
          type: string
          description: The ID that YouTube uses to uniquely identify the group.
      description: A group.
      type: object
  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)