title: How to Embed YouTube Channel with an iFrame
body: <p>There's plenty of guides on how to add YouTube channels by username. I've discovered you can add YouTube channels via an iFrame using code like this:</p>
  
  <pre><code>&lt;iframe src="http://www.youtube.com/embed/?listType=user_uploads&amp;list=YOURCHANNELNAME" width="480" height="400"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>However, this only works if the channel name is extracted from a URL like this:</p>
  
  <p><a href="https://www.youtube.com/user/YOURCHANNELNAME" rel="nofollow noreferrer">https://www.youtube.com/user/YOURCHANNELNAME</a></p>
  
  <p>How can I embed channels that don't have "user" in the URL, like this one:</p>
  
  <p><a href="https://www.youtube.com/freecodecamp" rel="nofollow noreferrer">https://www.youtube.com/freecodecamp</a></p>