REST Resource: channels

Resource: Channel

A channel resource contains information about a YouTube channel.

JSON representation
{
  "kind": string,
  "etag": string,
  "id": string,
  "snippet": {
    "title": string,
    "description": string,
    "customUrl": string,
    "publishedAt": string,
    "thumbnails": {
      object (ThumbnailDetails)
    },
    "defaultLanguage": string,
    "localized": {
      "title": string,
      "description": string
    },
    "country": string
  },
  "contentDetails": {
    "relatedPlaylists": {
      "likes": string,
      "uploads": string
    }
  },
  "statistics": {
    "viewCount": string,
    "commentCount": string,
    "subscriberCount": string,
    "hiddenSubscriberCount": boolean,
    "videoCount": string
  },
  "topicDetails": {
    "topicIds": [
      string
    ],
    "topicCategories": [
      string
    ]
  },
  "status": {
    "privacyStatus": enum,
    "isLinked": boolean,
    "longUploadsStatus": enum,
    "madeForKids": boolean,
    "selfDeclaredMadeForKids": boolean
  },
  "brandingSettings": {
    "channel": {
      "title": string,
      "description": string,
      "keywords": string,
      "trackingAnalyticsAccountId": string,
      "unsubscribedTrailer": string,
      "defaultLanguage": string,
      "country": string
    },
    "image": {
      "bannerExternalUrl": string
    }
  },
  "auditDetails": {
    "overallGoodStanding": boolean,
    "communityGuidelinesGoodStanding": boolean,
    "copyrightStrikesGoodStanding": boolean,
    "contentIdClaimsGoodStanding": boolean
  },
  "contentOwnerDetails": {
    "contentOwner": string,
    "timeLinked": string
  },
  "localizations": {
    string: {
      "title": string,
      "description": string
    },
    ...
  }
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string "youtube#channel".

etag

string

Etag of this resource.

id

string

The ID that YouTube uses to uniquely identify the channel.

snippet

object

The snippet object contains basic details about the channel, such as its title, description, and thumbnail images.

snippet.title

string

The channel's title.

snippet.description

string

The description of the channel. The property value has a maximum length of 1,000 characters.

snippet.customUrl

string

The channel's custom URL (@handle or legacy custom URL). The YouTube Help Center explains custom URLs and handles.

snippet.publishedAt

string

The date and time that the channel was created. The value is specified in ISO 8601 format.

snippet.thumbnails

object (ThumbnailDetails)

A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. Valid key values are default (88px wide and 88px tall), medium (240px wide and 240px tall), and high (800px wide and 800px tall).

When displaying thumbnails in your application, use the image URLs exactly as returned in API responses. Channel thumbnail URLs use the https domain; loading them over http might fail. Thumbnail images might be empty for newly created channels and can take up to one day to populate.

snippet.defaultLanguage

string

The language of the channel's default title and description.

snippet.localized

object

Localized title and description, read-only. This object contains the localized metadata for the language requested in the hl parameter, or falls back to the channel's defaultLanguage if no matching localization exists in localizations.

snippet.localized.title

string

The localized channel title.

snippet.localized.description

string

The localized channel description.

snippet.country

string

The country with which the channel is associated. Set this value using brandingSettings.channel.country.

contentDetails

object

The contentDetails object encapsulates information about the channel's content.

contentDetails.relatedPlaylists

object

Encapsulates information about the playlists associated with the channel, such as its uploaded or liked videos. Retrieve playlist metadata with playlists.list or the videos in a playlist with playlistItems.list.

contentDetails.relatedPlaylists.likes

string

The ID of the playlist that contains the channel's liked videos. Use the playlistItems.insert and playlistItems.delete methods to add or remove items from that list. Populated with "LL" only for the channel owner (empty string for other callers).

contentDetails.relatedPlaylists.uploads

string

The ID of the playlist that contains the channel's uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos.

statistics

object

The statistics object encapsulates statistics for the channel.

statistics.viewCount

string

The sum of the number of times all the videos in all formats have been viewed for a channel.

For all video formats (long-form, Live, and Shorts) on a channel, viewCount counts views the moment a video begins to play (includes autoplay, hold the pointer over, and click/tap to play).

For all video formats (long-form, Live, and Shorts) on a channel, viewCount includes co-views when multiple people watch together on a television screen.

statistics.commentCount
(deprecated)

string

Deprecated: This property isn't populated.

statistics.subscriberCount

string

The number of subscribers that the channel has. This value is rounded down to three significant figures, as explained in the API revision history and the YouTube Help Center. If hiddenSubscriberCount is true, this value is returned only to the channel owner.

statistics.hiddenSubscriberCount

boolean

Indicates whether the channel's subscriber count is hidden from public view (true means the subscriber count is hidden).

statistics.videoCount

string

The number of public videos uploaded to the channel. Private and unlisted videos aren't included, even when requested by the channel owner.

topicDetails

object

Encapsulates information about topics associated with the channel. Freebase topic IDs (topicDetails.topicIds) were deprecated on November 10, 2016, as announced in the API revision history; use topicDetails.topicCategories instead.

topicDetails.topicIds[]
(deprecated)

string

Deprecated: A list of Freebase topic IDs associated with the channel. Freebase topic IDs were deprecated on November 10, 2016, as announced in the API revision history; use topicCategories instead.

topicDetails.topicCategories[]

string

A list of Wikipedia URLs that describe the channel's content.

status

object

The status object encapsulates information about the privacy status of the channel.

status.privacyStatus

enum

Privacy status of the channel. Although the shared enum includes unlisted, channels only use public and private. Private channels are returned only to the channel owner or authorized delegates.

Valid values of this enum field are:

  • public
  • unlisted
  • private
status.isLinked

boolean

Indicates whether the user is linked to a YouTube channel identity. For existing channels, this property is always true.

status.longUploadsStatus

enum

The long uploads status of this channel, indicating whether it can upload videos longer than 15 minutes. An allowed channel can upload longer videos. An eligible channel can upload longer videos after the owner verifies their account at youtube.com/verify. A disallowed channel isn't eligible to upload longer videos and can't unlock the feature through account verification (for example, due to account eligibility restrictions or a copyright or Community Guidelines strike). Requests not authorized by the channel owner always return longUploadsUnspecified. See the YouTube Help Center for details.

Valid values of this enum field are:

  • longUploadsUnspecified
  • allowed
  • eligible
  • disallowed
status.madeForKids

boolean

Indicates whether the channel is designated as child-directed, and contains the channel's "made for kids" status as determined by the creator's setting (selfDeclaredMadeForKids) or YouTube's determination. See the YouTube Help Center for details. This property is read-only.

status.selfDeclaredMadeForKids

boolean

In a channels.list response, this property indicates whether the channel owner designated the channel as child-directed. In a channels.update request, set this property to designate the channel as "made for kids" (true) or not (false). This property is writable and is returned only to an authorized owner of the channel.

brandingSettings

object

The brandingSettings object encapsulates information about the branding of the channel.

brandingSettings.channel

object

Branding properties for the channel view.

brandingSettings.channel.title

string

The channel's title. When updating brandingSettings, the API ignores this field; update the title in YouTube Studio instead.

brandingSettings.channel.description

string

Specifies the channel description. The property value has a maximum length of 1,000 characters.

brandingSettings.channel.keywords

string

Lists keywords associated with the channel, separated by spaces. Use quotation marks around multi-word keywords. The property value has a maximum length of 500 characters.

brandingSettings.channel.trackingAnalyticsAccountId

string

The ID for a Google Analytics account to track and measure traffic to the channel.

brandingSettings.channel.unsubscribedTrailer

string

The video ID of the trailer that plays on the channel page for users who aren't subscribed to the channel.

brandingSettings.channel.defaultLanguage

string

The default language of the channel's title and description. When updating brandingSettings, omitting this property sets the default language to "en".

brandingSettings.channel.country

string

The country with which the channel is associated.

brandingSettings.image

object

Branding properties for branding images.

brandingSettings.image.bannerExternalUrl

string

This value is generated when a channelBanners.insert request succeeds for the channel.

auditDetails

object

Encapsulates channel data that is relevant for YouTube Partners during the audit process. Accessing this object requires authorization from the channel owner with the youtubepartner-channel-audit OAuth scope, which is revoked when an audit decision is made or two weeks after authorization. Requests for unowned channels return an empty auditDetails object.

auditDetails.overallGoodStanding

boolean

Whether the channel is in good standing overall. This value is the logical AND of communityGuidelinesGoodStanding, copyrightStrikesGoodStanding, and contentIdClaimsGoodStanding.

auditDetails.communityGuidelinesGoodStanding

boolean

Whether the channel respects the community guidelines (true indicates good standing).

auditDetails.copyrightStrikesGoodStanding

boolean

Whether the channel has any copyright strikes (true indicates no copyright strikes).

auditDetails.contentIdClaimsGoodStanding

boolean

Whether the channel has any unresolved Content ID claims (true indicates no unresolved claims). This property always returns true.

contentOwnerDetails

object

Encapsulates channel data that is relevant for YouTube Partners linked with the channel. This object's fields are populated only when the request sets the onBehalfOfContentOwner parameter and is authorized by the linked content owner; other requests return an empty contentOwnerDetails object.

contentOwnerDetails.contentOwner

string

The ID of the content owner linked to the channel.

contentOwnerDetails.timeLinked

string

The date and time when the channel was linked to the content owner. The value is specified in ISO 8601 format.

localizations[]

map (key: string, value: object)

Encapsulates translations of the channel's metadata. The property value is a map of string keys to objects. Each key is a BCP-47 language tag that identifies a language to which the channel's metadata has been translated.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

localizations[].title

string

The localized channel title.

localizations[].description

string

The localized channel description.

Methods

list

Returns a collection of zero or more channel resources that match the request criteria.

update

Modifies a channel's metadata, including brandingSettings, localizations, and status.