Skip to content

YouTube Source Provider

The YouTube Source feeds data from YouTube supporting Videos, My Channel, My Channel Video, My Channel Videos, My Channel Playlist, My Channel Playlist Videos, My Playlist Video and My Playlist Videos queries.

Settings

Source Instance Common Settings

SettingDescriptionDefault
NameThe name that will identify this source instance.
Default Cache TimeThe default duration in seconds before the cache is renewed, set to 0 to disable caching. This setting can be overriden in each query configuration.3600

If the source is based on a YouTube channel or playlist an oAuth authentication is required.

YouTube Source Configuration Account

YouTube Source Configuration Channel

YouTube Source Configuration Playlist

SettingDescription
AccountThe Google Account which to authenticate with.
ChannelThe YouTube Channel from which to create the source.
PlaylistThe YouTube Playlist from which to create the source.

If the source is based on YouTube videos an API Key is required instead.

YouTube Videos Source Configuration

SettingDescription
API KeyThe Google API Key which to authenticate with.

Videos Query

Fetches public videos with advanced query params resolving to a list of Video Type.

YouTube Videos Query

SettingDescriptionDefaultDynamic
Videos IDRestricts the results to videos created by a specific channel ID.
Channel IDRestricts the results to videos created by a specific channel ID.
Query TermThe list of terms the videos should be associated with. Use the Boolean NOT (-) and OR (|) operators to exclude or find videos that are associated with one of several search terms. For example, to match either "boating" or "sailing", set as boating|sailing. Similarly, to exclude "fishing", set as boating|sailing -fishing.
Since/UntilRestricts the results to videos that have been published within the specified range of dates.
Location/RadiusLocation in conjunction with radius, defines a circular geographic area to which to restrict the videos. The location points the center of the area with latitude/longitude coordinates e.g. 37.42307,-122.08427, while the radius is the maximum distance from the location in m, km, ft, or mi units, e.g 5km.
RegionRestricts the results to videos that can be viewed in the specified country. The value is an ISO 3166-1 alpha-2 country code, e.g ES.
LanguageRestricts the results to videos that are most relevant to the specified language. The value is typically an ISO 639-1 two-letter language code, however, you should use the values zh-Hans for simplified Chinese and zh-Hant for traditional Chinese. Note that results in other languages will still be returned if they are highly relevant to the search query term.
DefinitionRestricts the results based on the videos quality, either High Definition, Standard Definition, or Any. HD videos are available for playback in at least 720p, though higher resolutions, like 1080p, might also be available.Any
DurationRestricts the results based on the videos duration, either Long, longer than 20 minutes, Medium, between four and 20 minutes, Short, less than four minutes, or Any.Any
StartThe starting point, e.g of a list of 20 videos start from the number 2.1
QuantityThe maximum amount of videos to retrieve.20
OrderThe order in which the videos will be returned, within Date, reverse chronological order based on the date the videos were created, Rating, from highest to lowest rating, Relevance, based on their relevance to the search query, Title, alphabetically by title, or View Count, from highest to lowest number of views.Relevance
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

My Channel Query

Fetches the channel content resolving to a Channel Type.

My YouTube Channel Query

SettingDescriptionDefault
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

My Channel Video Query

Fetches a single video from the channel resolving to a Video Type.

My YouTube Channel Video Query

SettingDescriptionDefaultDynamic
VideoThe playlist video which content to fetch.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

My Channel Videos Query

Fetches videos from the channel resolving to a list of Video Type.

My YouTube Channel Videos Query

SettingDescriptionDefaultDynamic
StartThe starting position to retrieve the videos at.1
QuantityThe maximum amount of videos to fetch.20
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

My Channel Playlist Query

Fetches a single playlist from the channel resolving to a Playlist Type.

My YouTube Channel Playlist Query

SettingDescriptionDefaultDynamic
PlaylistThe YouTube Playlist which content to fetch.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600
Multi ItemsThe related multi-items content to query instead with Videos as the only option.

My Channel Playlist Videos Query

Fetches videos from the playlist resolving to a list of Video Type.

My YouTube Channel Videos Query

SettingDescriptionDefaultDynamic
StartThe starting position to retrieve the videos at.1
QuantityThe maximum amount of videos to fetch.20

My Playlist Video Query

Fetches a single video from the playlist resolving to a Video Type.

My YouTube Playlist Video Query

SettingDescriptionDefaultDynamic
VideoThe playlist video which content to fetch.
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

My Playlist Videos Query

Fetches videos from the playlist resolving to a list of Video Type.

My YouTube Playlist Videos Query

SettingDescriptionDefaultDynamic
StartThe starting position to retrieve the videos at.1
QuantityThe maximum amount of videos to fetch.20
CacheThe duration in seconds before the cache is invalidated and the query re-executed.3600

Video Type

Defines the mapping options of a YouTube Video object.

YouTube Video Mapping

OptionDescriptionTypeFilters
IDThe unique identifier of this video.String
TitleThe title of this video.StringLimit
DescriptionThe description of this video.StringLimit
URLThe YouTube public URL, e.g. www.youtube.com/watch?v=c2pz2mlSfXA.String
Iframe PlayerGenerates an HTML embed video player with several configuration settings.String
Published AtThe date this video was published.StringDate
Thumbnail URLThe URL to this video thumbnail with different size options, Low, Medium (default), High Resolution, Standard, and `Max Resolution*String
Thumbnail WidthThe width of this video thumbnail with same size options as for URL.String
Thumbnail HeightThe height of this video thumbnail with same size options as for URL.String
Total ViewsNumber of times this video has been viewed.Int
Total CommentsNumber of comments for this video.Int
Total LikesNumber of users that have indicated they like this video.Int
Total DislikesNumber of users that have indicated they dislike this video.Int

Channel Type

Defines the mapping options of a YouTube Channel object.

YouTube Channel Mapping

OptionDescriptionTypeFilters
IDThe unique identifier of this channel.String
TitleThe title of this channel.StringLimit
DescriptionThe description of this channel.StringLimit
CountryThe country with which this channel is associated.String
Published AtThe date this channel was published.StringDate
Thumbnail URLThe URL to this channel thumbnail with different size options, Low, Medium (default), High Resolution, Standard, and Max ResolutionString
Thumbnail WidthThe width of this channel thumbnail with same size options as for URL.String
Thumbnail HeightThe height of this channel thumbnail with same size options as for URL.String
Total ViewsNumber of times this channel has been viewed.Int
Total VideosNumber of public videos uploaded to this channel.Int
Total SubscribersNumber of subscribers this channel has, the value is rounded down to three significant figures.Int

Playlist Type

Defines the mapping options of a YouTube Playlist object.

YouTube Video Mapping

OptionDescriptionTypeFilters
IDThe unique identifier of this playlist.String
TitleThe title of this playlist.StringLimit
DescriptionThe description of this playlist.StringLimit
Iframe PlayerGenerates an HTML embed playlist player with several configuration settings.String
Published AtThe date this playlist was published.StringDate
Thumbnail URLThe URL to this playlist thumbnail with different size options, Low, Medium (default), High Resolution, Standard, and Max ResolutionString
Thumbnail WidthThe width of this playlist thumbnail with same size options as for URL.String
Thumbnail HeightThe height of this playlist thumbnail with same size options as for URL.String