channel resource's
  statistics.subscriberCount property value
  has been updated to reflect a YouTube policy change that affects the way that subscriber counts
  are displayed. For more information, see
  Revision History or the
  YouTube Help Center.
Returns a collection of zero or more channel resources that match the request criteria.
Quota impact: A call to this method has a quota cost of 1 unit.
Common use cases
Request
HTTP request
GET https://www.googleapis.com/youtube/v3/channels
Authorization
A request that retrieves the auditDetails part for a channel resource must provide an authorization token that contains the https://www.googleapis.com/auth/youtubepartner-channel-audit scope. In addition, any token that uses that scope must be revoked when the MCN decides to accept or reject the channel or within two weeks of the date that the token was issued.
Parameters
The following table lists the parameters that this query supports. All of the parameters listed are query parameters.
| Parameters | ||
|---|---|---|
| Required parameters | ||
| part | stringThe partparameter specifies a comma-separated list of one or morechannelresource properties that the API response will include.If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelresource, thecontentDetailsproperty contains other properties, such as theuploadsproperties. As such, if you setpart=contentDetails, the API response will also contain all of those nested properties.The following list contains the partnames that you can include in the parameter value:
 | |
| Filters (specify exactly one of the following parameters) | ||
| categoryId | stringThis parameter has been deprecated. The categoryIdparameter specified a
        YouTube guide category and could be used to
        request YouTube channels associated with that category. | |
| forHandle | stringThe forHandleparameter specifies a YouTube handle, thereby requesting
      the channel associated with that handle. The parameter value can be prepended with an@symbol. For example, to retrieve the resource for the "Google for Developers" channel, set theforHandleparameter value to eitherGoogleDevelopersor@GoogleDevelopers. | |
| forUsername | stringThe forUsernameparameter specifies a YouTube username, thereby requesting the channel associated with that username. | |
| id | stringThe idparameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In achannelresource, theidproperty specifies the channel's YouTube channel ID. | |
| managedByMe | booleanThis parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. Set this parameter's value to trueto instruct the API to only return channels managed by the content owner that theonBehalfOfContentOwnerparameter specifies. The user must be authenticated as a CMS account linked to the specified content owner andonBehalfOfContentOwnermust be provided. | |
| mine | booleanThis parameter can only be used in a properly authorized request. Set this parameter's value to trueto instruct the API to only return channels owned by the authenticated user. | |
| Optional parameters | ||
| hl | stringThe hlparameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by thei18nLanguages.listmethod.If localized resource details are available in that language, the resource's snippet.localizedobject will contain the localized values. However, if localized details are not available, thesnippet.localizedobject will contain resource details in the resource's default language. | |
| maxResults | unsigned integerThe maxResultsparameter specifies the maximum number of items that should be returned in the result set. Acceptable values are0to50, inclusive. The default value is5. | |
| onBehalfOfContentOwner | stringThis parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwnerparameter 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. | |
| pageToken | stringThe pageTokenparameter identifies a specific page in the result set that should be returned. In an API response, thenextPageTokenandprevPageTokenproperties identify other pages that could be retrieved. | |
Request body
Do not provide a request body when calling this method.
Response
If successful, this method returns a response body with the following structure:
{
  "kind": "youtube#channelListResponse",
  "etag": etag,
  "nextPageToken": string,
  "prevPageToken": string,
  "pageInfo": {
    "totalResults": integer,
    "resultsPerPage": integer
  },
  "items": [
    channel Resource
  ]
}Properties
The following table defines the properties that appear in this resource:
| Properties | |
|---|---|
| kind | stringIdentifies the API resource's type. The value will be youtube#channelListResponse. | 
| etag | etagThe Etag of this resource. | 
| nextPageToken | stringThe token that can be used as the value of the pageTokenparameter to retrieve the next page in the result set. | 
| prevPageToken | stringThe token that can be used as the value of the pageTokenparameter to retrieve
        the previous page in the result set. Note that this property is not included in the API
        response if the corresponding API request set themanagedByMeparameter totrue. | 
| pageInfo | objectThe pageInfoobject encapsulates paging information for the result set. | 
| pageInfo.totalResults | integerThe total number of results in the result set. | 
| pageInfo.resultsPerPage | integerThe number of results included in the API response. | 
| items[] | listA list of channels that match the request criteria. | 
Errors
The following table identifies error messages that the API could return in response to a call to this method. For more details, see YouTube Data API - Errors.
| Error type | Error detail | Description | 
|---|---|---|
| badRequest (400) | invalidCriteria | A maximum of one of the following filters may be specified: id,categoryId,mine,managedByMe,forHandle,forUsername. In case of content owner authentication via theonBehalfOfContentOwnerparameter, only theidormanagedByMemay be specified. | 
| forbidden (403) | channelForbidden | The channel specified by the idparameter does not support the request or the request is not properly authorized. | 
| notFound (404) | categoryNotFound | The category identified by the categoryIdparameter cannot be found. Use the guideCategories.list method to retrieve a list of valid values. | 
| notFound (404) | channelNotFound | The channel specified in the idparameter cannot be found. | 
Try it!
Use the APIs Explorer to call this API and see the API request and response.