...
YouTube video URLs can take several forms. The three example URLs below all reference the same video with an ID of FJEqZqwJvzc.
- https://www.youtube.com/watch?v=FJEqZqwJvzc
The ID appears a the end of the URL following 'v='. - https://www.youtube.com/embed/FJEqZqwJvzc?rel=0&controls=0&showinfo=0
The ID appears after 'embed/', but before '?'. Note that '?' and everything that follows may not be present in every URL of this format. - https://youtu.be/FJEqZqwJvzc
The ID appears at the end of the URL, after the last slash.
...