Returns a list of channelSection resources that match the API request criteria.
Requests that use the channelId or id filter don't require OAuth 2.0 authorization for public channels. Requests that use mine=true or onBehalfOfContentOwner require authorization. For method-specific error responses, see channelSections.list errors. For code examples, see channelSections.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/channelSections
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
id[] |
Specifies a comma-separated list of IDs that uniquely identify the |
mine |
Set this parameter's value to |
channelId |
Specifies a YouTube channel ID to retrieve only that channel's sections. Specify exactly one filter parameter ( |
hl |
Deprecated: Previously supported retrieving localized metadata for a channel section, which is no longer supported in YouTube Studio or the YouTube app. When set, the API still validates the value as a supported language code but ignores it when building the response. |
part[] |
Required. Specifies a comma-separated list of one or more If the parameter identifies a property that contains child properties, the child properties are included in the response. For example, in a Valid values are |
onBehalfOfContentOwner |
This parameter can only be used in a properly authorized request, and is intended exclusively for YouTube content partners. The |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"kind": string,
"etag": string,
"items": [
{
object ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Etag of this resource. |
items[] |
A list of channel sections that match the request criteria. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.