YTChannel - lmd-dev/lmd-youtube GitHub Wiki

YTChannel

Represents a YouTube channel

Properties

king: string Type of YouTube item: "youtube#channel"

id: string YouTube id of the channel

title: string Title of the channel Require snippet value for the part attribut of the query

description: string Description of the channel Require snippet value for the part attribut of the query

customUrl: string Custom URL of the channel Require snippet value for the part attribut of the query

publishedAt: Date Creation date of the channel Require snippet value for the part attribut of the query

thumbnails: Object Collection of the channel thumbnail with different sizes Require snippet value for the part attribut of the query

defaultLanguage: string Default language of the channel Require snippet value for the part attribut of the query

country: string Country of the channel Require snippet value for the part attribut of the query

playlists: YTPlaylist Playlists manager of the channel

Methods

searchVideos(query: SearchVideoQuery): YTVideo[]

Search for videos of the current channel with extended search options

ChannelQueryProperties attributs

maxResults: number [optional]

  • Specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. If not defined, all videos will be listed

order: string [optional]

  • Specifies the method that will be used to order resources in the API response. The default value is relevance.
  • Possible values: "date" | "relevance" | "rating" | "title" | "viewCount"

part: string [optional]

  • Specifies a comma-separated list of one or more channel resource properties that the API response will include.
  • Possible values: "snippet"

publishedAfter: Date [optional]

  • Indicates that the API response should only contain resources created at or after the specified time.

publishedBefore: Date [optional]

  • Indicates that the API response should only contain resources created at or before the specified time.