Skip to content
Essentials for YOOtheme Pro

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
PlayableRestricts results to videos that can be played outside YouTube.true
EmbeddableRestricts results to videos that can be embedded in external sites.true
Videos IDSet videos ID separated by comma, or use below filters to specify which videos should be loaded.
Channel IDRestricts the results to videos created by a specific channel ID.
Category IDRestricts results to a particular video category.
Topic IDRestricts search results to only include resources associated with the specified topic.
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.
CaptionsRestricts results based on caption availability. Options are With Captions (closedCaption) or Without Captions (none).
Safe SearchContent filtering level, either Moderate (moderate), Strict (strict), or None (none).
Video TypeRestricts results to a particular video type. Options are Movie (movie) or Episode (episode).
BroadcastRestricts results to a particular event type. Options are Live (live), Upcoming (upcoming), or Completed (completed).
SinceRestricts results to videos published at or after the specified date.
UntilRestricts results to videos published before or at the specified date.
LocationThe coordinates (latitude,longitude) that point at the center of the area, e.g. 37.42307,-122.08427.
RadiusThe 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 (HD), Standard (SD), or Any.Any
DurationRestricts the results based on the videos duration, either Longer than 20m, Between 4 and 20m, Shorter than 4m, or Any.Any
StartThe starting point from which to retrieve videos.1
QuantityThe maximum amount of videos to retrieve.20
OrderThe order in which the videos will be returned, within Relevance, Rating Descendant, Created Date Reversed, Title Alphabetical, or View Count Descendant.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