Add YouTube videos to your website

YouTube allows you to find videos on any topic that you can include in your ContentBreeze website. What that means is, besides showing news feeds, you can also display the latest or best videos related to a specific topic or keywords. Youtube videos are integrated into ContentBreeze through the RSS that is provided by Youtube as this tutorial will explain.
In this tutorial I will explain how to incorporate the three different types of RSS that Youtube provides, which will allow you to collect the types of videos you are interested in.

  • Keyword RSS: New videos uploaded to Youtube related with specific keywords.
  • Tag RSS: New videos uploaded to Youtube that have a certain tag.
  • Channel RSS: New videos uploaded to a specific Youtube channel.

In this tutorial we will show you how to add each of these RSS feed types to your ContentBreeze website.
The first thing you need to do is search for the YouTube videos you’re interested in. Type the keyword or set of keywords in the YouTube search box and hit the enter key on your keyboard.
YouTube will show you many results, but they may not always be of good quality. You can filter these videos by clicking on the Filters option (shown in yellow in the image you see below).

yt-1

By using filters you will be able to specify the results you are looking for as well as select any of the other options that YouTube provides you. An example of this is to only show videos uploaded the previous week.
If you want to bring in videos related to a given search, you should put the search words in a URL that has the following structure:

http://gdata.youtube.com/feeds/base/videos?q=[SEARCH TERMS]&client=ytapi-youtube-rss-redirect&alt=rss&orderby=published&v=2

For example,

If the search term is: “CELIAC” the url will be:

http://gdata.youtube.com/feeds/base/videos?q=celiac&client=ytapi-youtube-rss-redirect&alt=rss&orderby=published&v=2

If the search term is “CELIAC DISEASE” the URL will be:

http://gdata.youtube.com/feeds/base/videos?q=celiac+disease&client=ytapi-youtube-rss-redirect&alt=rss&orderby=published&v=2

If you want to find videos related to certain tags in Youtube, you will need to use the following URL structure:

For videos tagged with “CELIAC”

http://gdata.youtube.com/feeds/base/videos/-/celiac?alt=rss&client=ytapi-youtube-rss-redirect&orderby=published&v=2

For videos tagged with keywords “celiac” and “disease”, you will need to use the following structures in the urls.

http://gdata.youtube.com/feeds/base/videos/-/celiac+disease?alt=rss&client=ytapi-youtube-rss-redirect&orderby=published&v=2

If you try and test different keyword and keyword combinations, you will see which combination brings you the best results.
If you are finding that the results are still not specific enough, you can narrow the results down much further. For example, you can specify a Youtube channel to pull videos from. Here’s how you would do this.
Bring in only videos from a specific Youtube channel
If you selected “Channel” in result type under in the filters, as we discussed earlier in this tutorial, Youtube will display videos from channels related to those topics you chose.
The results will show videos and other information such as the username a specific video channel belongs to. It will also give you more details about that user’s channel, such as whether the channel is active and the number of videos uploaded to the channel.

Also, there will be a button to Subscribe to the channel along with a dialog box that has the number of subscribers. The more subscribers a channel has, the more traffic that channel gets and theoretically, the better the channel will be.
To evaluate whether you want to include a specific channel, you should bear in mind some aspects such as the number of videos that have been uploaded to that channel and how often that channel is updated. We recommend you choose a channel that has several videos which are uploaded frequently. Also, you should pay attention that the quality of the videos offered are good enough in terms of audio and visual presentation.

yt-2

When you have selected a particular channel, click on the name of the channel and Youtube will take you to the page where all the videos for that channel are displayed. You will find information about the channel and a video list to evaluate here.

To bring in this channel’s videos to your ContentBreeze site, you will need the URL of the RSS channel. To find it, we recommend you use Mozilla Firefox. If you click the RSS button for the channel in Firefox, it will take you to the RSS feed. You will just need to copy the feed URL and paste it in the site administrator section at ContentBreeze.

Another way to find the RSS is by the URL structure, which will be discussed next.
Another way to find the RSS of that channel is through the URL format. If you change just a few words from the standard RSS URL, as you see below, you will be able to find any RSS YouTube channel.

For example, we will use the following YouTube channel URL:

https://www.youtube.com/user/celiacdiseasefndtn

To find the RSS, you will need to change it to:

http://gdata.youtube.com/feeds/base/users/celiacdiseasefndtn/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile

All the URLS of RSS of Youtube have this format. In this URL you just need to put the correct username.

http://gdata.youtube.com/feeds/base/users/username/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile

How to bring videos into your ContentBreeze website.

To configure your ContentBreeze website to bring YouTube videos in, you need to login to ContentBreeze. Click on the “Site” drop down menu and select the “List Webs” option and then, click on the “New” button.

yt-3

To add a YouTube channel, you need to follow the same steps as when you add any source, but with one difference. You have to choose “Video” in the “RSS Type” field:
For the rest of the fields:
•In the“ Name of Site” field you need to put the name of the YouTube channel.
•In the URL field, you need to add the URL of  the YouTube channel.
•In the URL of RSS field you need to add the RSS of the YouTube channel as explained in this tutorial.

yt-4•For the RSS URL type field you should leave this as the default. The same for the other fields: Keywords, Special Category, Twitter & Featured. Leave these ones on the  default settings as well.
•For position you can also leave the setting that comes by default.
•In the RSS type field you have to select the Video option.  This is what is going to tell ContentBreeze that this is a video feed.
•In the rest of the fields, leave the ones that come by default.

When you have finished putting all the data on the admin, click the Create button and the Youtube channel will be added to those websites you are currently bringing videos from.

 yt-5

How to display videos on your site:

These videos can be displayed in two different places in your website.
1.You can display them on the front page, by adding the video widget to the Footer section.
2. They can be shown on the page “Best Websites” where you will also be able to show the latest news from all the websites as well as the latest videos of each channel you have added.

Leave a Reply

Your email address will not be published. Required fields are marked *