Skip to content

Instantly share code, notes, and snippets.

@ScottCooper92
Created May 4, 2015 22:17
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ScottCooper92/ea11b690ba4b1278e049 to your computer and use it in GitHub Desktop.
Save ScottCooper92/ea11b690ba4b1278e049 to your computer and use it in GitHub Desktop.
Example of the various YouTube url formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://www.youtube.com/v/-wtIMTCHWuI?version=3&autohide=1
http://youtu.be/-wtIMTCHWuI
http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D-wtIMTCHWuI&format=json
http://s.ytimg.com/yt/favicon-wtIMTCHWuI.ico
http://i2.ytimg.com/vi/-wtIMTCHWuI/hqdefault.jpg
@skierpage
Copy link

http://www.youtube.com/v/-wtIMTCHWuI?version=3 links don't seem to work at all any more. I'm not sure when YouTube broke them.

These day the URL YouTube suggests when you click Share > Embed in Desktop is https://www.youtube.com/embed/-wtIMTCHWuI , part of

<iframe width="560" height="315"
    src="https://www.youtube.com/embed/-wtIMTCHWuI" frameborder="0"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
    allowfullscreen></iframe>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment