YouTube Channel Sections API

The ChannelSections API from YouTube — 1 operation(s) for channelsections.

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 /youtube/v3/channelSections Create a channel section · Insert channelSections #
Ask an LLM
“How do I add a new section to my channel's home page?”
“Can I create a channel section for a specific playlist?”
Tell an agent
Create a channel section with snippet {snippet}.
Add a new channel section for playlist {playlist} with snippet {snippet}.
GET /youtube/v3/channelSections List a channel's channel sections · List channelSections #
Ask an LLM
“Which channel sections are on my YouTube channel?”
“Can I list channel sections for a channel I manage?”
Tell an agent
List channel sections for channel {channel}.
Show my channel sections in {hl}.
DELETE /youtube/v3/channelSections Delete a channel section · Delete channelSections #
Ask an LLM
“How do I remove a channel section from my channel?”
“Can I delete a channel section by its ID?”
Tell an agent destructive · confirm first
Delete channel section {section}.
Remove the channel section {section} from my channel.
PUT /youtube/v3/channelSections Update a channel section · Update channelSections #
Ask an LLM
“How do I change the title or playlists of an existing channel section?”
“Can I update a channel section's targeting settings?”
Tell an agent
Update channel section {section} with snippet {snippet}.
Set channel section {section} targeting to {targeting}.

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-channelsections-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-channelsections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Data API v3 Channel Sections API
  version: v3
  description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 4 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: ChannelSections
paths:
  /youtube/v3/channelSections:
    post:
      operationId: youtube.channelSections.insert
      summary: Insert channelSections
      description: Inserts a new resource into this collection.
      parameters:
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. 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 CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: onBehalfOfContentOwnerChannel
        in: query
        required: false
        description: This parameter can only be used in a properly [authorized request](https://developers.google.com/youtube/data/guides/authentication). *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        schema:
          type: array
          items:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChannelSection'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChannelSection'
        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.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - ChannelSections
    get:
      operationId: youtube.channelSections.list
      summary: List channelSections
      description: Retrieves a list of resources, possibly filtered.
      parameters:
      - name: channelId
        in: query
        required: false
        description: Return the ChannelSections owned by the specified channel ID.
        schema:
          type: string
      - name: hl
        in: query
        required: false
        description: Return content in specified language
        schema:
          type: string
          deprecated: true
      - name: id
        in: query
        required: false
        description: Return the ChannelSections with the given IDs for Stubby or Apiary.
        schema:
          type: array
          items:
            type: string
      - name: mine
        in: query
        required: false
        description: Return the ChannelSections owned by the authenticated user.
        schema:
          type: boolean
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. 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 CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set *part=snippet*, the API response will also contain all of those nested properties.
        schema:
          type: array
          items:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChannelSectionListResponse'
        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.force-ssl
        - https://www.googleapis.com/auth/youtube.readonly
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - ChannelSections
    delete:
      operationId: youtube.channelSections.delete
      summary: Delete channelSections
      description: Deletes a resource.
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. 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 CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        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.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - ChannelSections
    put:
      operationId: youtube.channelSections.update
      summary: Update channelSections
      description: Updates an existing resource.
      parameters:
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. 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 CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. The part names that you can include in the parameter value are snippet and contentDetails.
        schema:
          type: array
          items:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChannelSection'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChannelSection'
        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.force-ssl
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - ChannelSections
components:
  schemas:
    ChannelSection:
      properties:
        snippet:
          $ref: '#/components/schemas/ChannelSectionSnippet'
          description: The snippet object contains basic details about the channel section, such as its type, style and title.
        kind:
          default: youtube#channelSection
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection".'
          type: string
        etag:
          description: Etag of this resource.
          type: string
        targeting:
          $ref: '#/components/schemas/ChannelSectionTargeting'
          description: The targeting object contains basic targeting settings about the channel section.
        id:
          type: string
          description: The ID that YouTube uses to uniquely identify the channel section.
        localizations:
          additionalProperties:
            $ref: '#/components/schemas/ChannelSectionLocalization'
          type: object
          description: Localizations for different languages
          deprecated: true
        contentDetails:
          $ref: '#/components/schemas/ChannelSectionContentDetails'
          description: The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section.
      type: object
    ChannelSectionSnippet:
      description: Basic details about a channel section, including title, style and position.
      properties:
        type:
          description: The type of the channel section.
          enum:
          - channelsectionTypeUndefined
          - singlePlaylist
          - multiplePlaylists
          - popularUploads
          - recentUploads
          - likes
          - allPlaylists
          - likedPlaylists
          - recentPosts
          - recentActivity
          - liveEvents
          - upcomingEvents
          - completedEvents
          - multipleChannels
          - postedVideos
          - postedPlaylists
          - subscriptions
          type: string
        localized:
          $ref: '#/components/schemas/ChannelSectionLocalization'
          description: Localized title, read-only.
        title:
          type: string
          description: The channel section's title for multiple_playlists and multiple_channels.
        position:
          format: uint32
          description: The position of the channel section in the channel.
          type: integer
        style:
          description: The style of the channel section.
          type: string
          enum:
          - channelsectionStyleUnspecified
          - horizontalRow
          - verticalList
          deprecated: true
        defaultLanguage:
          description: The language of the channel section's default title and description.
          type: string
          deprecated: true
        channelId:
          description: The ID that YouTube uses to uniquely identify the channel that published the channel section.
          type: string
      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
    ChannelSectionListResponse:
      properties:
        eventId:
          type: string
          description: Serialized EventId of the request which produced this response.
          deprecated: true
        kind:
          default: youtube#channelSectionListResponse
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#channelSectionListResponse".'
          type: string
        etag:
          description: Etag of this resource.
          type: string
        visitorId:
          type: string
          description: The visitorId identifies the visitor.
          deprecated: true
        items:
          description: A list of ChannelSections that match the request criteria.
          type: array
          items:
            $ref: '#/components/schemas/ChannelSection'
      type: object
    ChannelSectionLocalization:
      properties:
        title:
          type: string
          description: The localized strings for channel section's title.
          deprecated: true
      description: ChannelSection localization setting
      type: object
    ChannelSectionTargeting:
      properties:
        regions:
          type: array
          description: The region the channel section is targeting.
          items:
            type: string
          deprecated: true
        languages:
          description: The language the channel section is targeting.
          type: array
          items:
            type: string
          deprecated: true
        countries:
          type: array
          description: The country the channel section is targeting.
          items:
            type: string
          deprecated: true
      type: object
      description: ChannelSection targeting setting.
    ChannelSectionContentDetails:
      properties:
        channels:
          description: The channel ids for type multiple_channels.
          items:
            type: string
          type: array
        playlists:
          type: array
          description: The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed.
          items:
            type: string
      description: Details about a channelsection, including playlists and channels.
      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/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
            https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
            https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
  url: https://developers.google.com/youtube/
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtube.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)