YouTube URL Formats Explained: Watch, Shorts, Embeds
Several different links can point at the same video, and if you write code or manage content, sooner or later you have to treat them as one. This guide looks at YouTube links from the parsing side: what each format looks like, where the 11-character video ID sits inside it, and which extra parameters come along for the ride. Once you can read the anatomy, pulling out IDs stops being guesswork and becomes simple pattern matching.