Whatever presence you have on the Internet—a large website, a blog, a social network page, or pretty much anything else—there are many ways to integrate YouTube into it. From simple video embeds to our full-powered APIs, you can integrate video at all levels of technical expertise.
Bringing YouTube to your site is more than just adding some of the millions of videos available on YouTube. It keeps your visitors interested and allows self-expression and interaction with one of their favorite services. And it brings your site, blog, or page into the YouTube video community—an international network of users, creators, and sites connected through the Web's largest collection of online videos.
We've highlighted some typical ways of integrating video content below—just click the arrow next to the question to get the answer. If you have any questions or suggestions, or projects that you would like us to know about, please leave a post at the Developer Forum.
To show a selection of videos that is easily editable, embed a playlist. When you update the playlist on YouTube, the playlist on your site will update as well. This is a good way of creating longer stories through a series of videos, or simply giving your readers more pre-selected content to watch.
Adding videos to your profiles on social networks like MySpace and Facebook is a great way to share your videos or favorites with friends. Or, if you're promoting something (like your band) on MySpace, videos will help attract visitors to your page, who can then then share the link with their friends. The social network sites have similar ways to add videos, so we'll use MySpace as an example.
Filming an item to post on eBay is perfect for creating extra interest, especially for more expensive objects where the buyer will want to know more about the item before bidding. Here's how to do it.
So you're ready for something a bit cooler, eh? How about an automatically-updating video bar that shows the content you've chosen?
The video bar is a little application that can live anywhere on your website, displaying a small selection of videos which automatically update. You can fill your video bar with different feeds—like Most Viewed, Most Rated, and Recently Added videos—or channels or search expressions. When a user clicks on a video in the bar, a window pops up and plays the video. Try out the video bar below from our own YouTube channel. Then make your own with a wizard that will generate all the code for you according to how you want the bar displayed.
Here's a sample video bar:
If you have an AdSense account, you can add Video Units to your site. Video Units are embedded, customizable video players featuring content from categories, individual content providers, or automatic keyword-based targeting. Here's how to set up your player, assuming you've already signed up for AdSense and linked your accounts:
You can use the YouTube APIs to let users search YouTube directly from your site, pulling up results which can viewed without having to go to YouTube. Using APIs in combination, you can limit searches by category, tag, or user; and control the number of results returned and whether they're ranked by number of views or the relevance. For example, if you have content on your own YouTube channel, you can build an application that allows users to search only through your own videos, and then watch them without leaving your site.
For more information, please go to http://code.google.com/apis/youtube.
The YouTube APIs are designed to enable these scenarios. There are two ways you can go about this:
Site-owned videos: Using the YouTube APIs, you can upload all user videos into your YouTube account. In essence, you will own these videos, and your users should be made aware of this. Once the videos are uploaded, you can query and embed them into your site using the YouTube embedded player.
Using the YouTube APIs, you can enable commenting and rating on these videos. Since the comments and ratings will go under your account name on the YouTube site, this implementation makes sense if your community is small and fairly trusted. If that is not the case, you are better off implementing user-owned videos as described below.
User-owned videos: Using the YouTube APIs, you can allow users to upload videos into YouTube from your site. Unlike site-owned videos, the users will own their videos under their individual YouTube accounts. YouTube APIs provide you the ability to embed hidden tags in the video, which allow you to query and restrict the videos to only those that came from your site. If your site hands out its own user accounts, you can implement a one-time association of accounts which should make this process more transparent to your users.
Using the YouTube APIs, you can enable commenting and rating on the videos that came from your site. Since the comments and ratings will go under the end users' YouTube accounts, this solution scales to a larger community.
Video is much more engaging than text. It draws more users and keeps them on your site for longer. YouTube has a large repository of Internet video content along with the search, playback and API tools to make adding video easier for you.
When looking to increase engagement, try using video as a way to start discussion or make a commentary by creating more context for your users:
It's very easy to build out your own site with your own videos for free. All you need to do is upload the videos to YouTube first. There's no charge and we will cover hosting and streaming costs. It's not only a great way to increase user engagement on your site, but it's very easy, and free as well.
Once you have uploaded the videos you have a few ways of pulling them back to your site: