YouTube URL Formats Explained: Watch, Shorts, Embeds
Six 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 is youtube url formats explained from the parsing side: what each shape looks like, where the 11 character video ID sits inside it, and which extra parameters ride along uninvited. Once you can read the anatomy, extracting IDs stops being guesswork and becomes plain pattern matching.