We all know that some of the most visited sites are those offering free video clips. The good news is that many of them allow their content to be shown on other sites. YouTube is not an exclusion. The average user likes sites containing different types of media and webmasters like much more using free content. In this article we want tell you how to implement a video clip in your site using the code given by YouTube. We will tell you how to implement many clips relevant to your content.

Every child knows that Mountain View guys offer free widgets and one of them is Google API for searching multimedia, part of the results are provided by YouTube. You don’t have to be a software engineer to use the code. The page that offer the code wee need is Video Bar Wizard:

apigoogle.png

After we pick the keyword(s) we need, optionally channel and orientation (horizontal shows only 4 clips unlike the vertical that shows much more clips), we press the Show Code button and select and copy the code from the text area (not shown on picture). We place the code on the pages we want. If we have a dynamic site we can do this small trick:

We find executeList : [”SEO”] and replace SEO (or the keyword(s) we have chosen), with a variable which will be generated according to the page title or other criteria. Thus we will have different clips on any single page that has implemented the code.

Why do we do this?. When a user watches a clip on your site and clicks on it, he will be forwarded to the page of YouTube where the video clip resides. This action will generate a backlink to the page the user came from. The only disadvantage is that on YouTube video clip pages are shown only top 5 referrers. The good news is that there so many clips that don’t have referrers or have less than 5. That reminds me to tell you NOT to choose channels like Most Viewed Videos or Top Rated Videos, because they have many referrers. Isn’t that obvious?

What are pros? It is simple - deep links from an authoritative source. And for those webmaster that hate to give away PageRank the code is blessed by Matt Cutts :) - it is nothing but JavaScript.

Here is where I implemented the code. Scroll down to the bottom of the page to see it in action.

And here is the result.

Enjoy!