72

Can anyone suggest how I embed a youtube channel into a webpage - I am getting conflicting information from various sites, ideally using the custom player if possible? thanks

2

4 Answers 4

99

YouTube supports a fairly easy to use iframe and url interface to embed videos, playlists and all user uploads to your channel: https://developers.google.com/youtube/player_parameters

For example this HTML will embed a player loaded with a playlist of all the videos uploaded to your channel. Replace YOURCHANNELNAME with the actual name of your channel:

<iframe src="https://www.youtube.com/embed/?listType=user_uploads&list=YOURCHANNELNAME" width="480" height="400"></iframe>
10
  • 15
    +1 for coming back to an old question and giving a top answer
    – Zabs
    Commented Sep 3, 2014 at 14:38
  • 1
    At least this one produces an output. For some reason the javascript examples listed on this page and elsewhere don't output anything on my page.
    – TARKUS
    Commented Sep 23, 2014 at 11:47
  • 7
    not working for me, perhaps something changed on youtube? in dev tools i'm seeing calls to youtube.com/… returning status 400.
    – mendel
    Commented Feb 15, 2017 at 15:55
  • 4
    Where would be the channel name located?? The public channel name does not work. Commented Mar 18, 2018 at 10:41
  • 1
    yes this will work but you need to edit the answer to use https not http. It now works after for me. Thanks
    – james
    Commented Mar 5, 2021 at 22:51
20

In order to embed your channel, all you need to do is copy then paste the following code in another web-page.

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=YourChannelName&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>

Make sure to replace the YourChannelName with your actual channel name.

For example: if your channel name were CaliChick94066 your channel embed code would be:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=CaliChick94066&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>

Please look at the following links:

YouTube on your site

Embed YouTube Channel

You just have to name the URL to your channel name. Also you can play with the height and the border color and size. Hope it helps

2
  • thanks for that - I probably should have stated I am trying to get this displayed without the Google Gadgets bar at the bottom - I guess I may have to use the API to create a more customised player.
    – Zabs
    Commented Feb 9, 2012 at 10:43
  • 2
    This approach is broken now. Gives GET google.com/uds/solutions/videoshow/videoshow.css 404 (Not Found) ifr:411 GET youtube.com/… 404 (Not Found) Commented Feb 19, 2014 at 20:47
9

Seems like the accepted answer does not work anymore. I found the correct method from another post: https://stackoverflow.com/a/46811403/6368026

Now you should use:

http://www.youtube.com/embed/videoseries?list=USERID And the USERID is your youtube user id with 'UU' appended.

For example, if your user id is TlQ5niAIDsLdEHpQKQsupg then you should put UUTlQ5niAIDsLdEHpQKQsupg. If you only have the channel id (which you can find in your channel URL) then just replace the first two characters (UC) with UU.

So in the end you would have an URL like this:

http://www.youtube.com/embed/videoseries?list=UUTlQ5niAIDsLdEHpQKQsupg

3
  • 1
    I don't know, why the accepted answer shouldn't work - in 2022 it is working. Allthoug i upvoted your answer, because it is also working...
    – biberman
    Commented Mar 17, 2022 at 15:01
  • this also, appears to not be working in 2022 along with the accepted answer.
    – thus__
    Commented Nov 22, 2022 at 21:15
  • This works. Just replace http with https.
    – Ahmed
    Commented Jan 9 at 2:40
-6

I quickly did this for anyone else coming onto this page:

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"
  type="application/x-shockwave-flash"
  allowfullscreen="true"
  allowscriptaccess="always"
  width="425" height="344">
</embed>
</object>

See the jsFiddle.

2
  • 1
    The question is about embedding the channel, not a single video. Commented Nov 13, 2013 at 22:48
  • that is not relevant for this question.
    – simon
    Commented Jan 17, 2020 at 19:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.