What is the YouTube URL format?
YouTube videos can be linked through several URL shapes — watch, youtu.be, Shorts, embed and mobile. All point to the same video ID.
Definition
Users paste whatever they copied, so your input handling should accept all of them.
In practice
URLs often carry extra parameters: t= or start= for a timestamp, si= share-tracking tokens, feature= and list=. None of these change which video is resolved, so you can pass the URL exactly as the user pasted it.
If you store URLs, normalising them to a canonical watch?v=ID form (or just the ID) makes de-duplication easier.
Why it matters when downloading video
- CrawlFetch accepts every form below; there's no need to normalise first.
Accepted forms
| Form | Example |
|---|---|
| Watch | https://www.youtube.com/watch?v=aqz-KE-bpKQ |
| Short link | https://youtu.be/aqz-KE-bpKQ |
| Shorts | https://www.youtube.com/shorts/aqz-KE-bpKQ |
| Embed | https://www.youtube.com/embed/aqz-KE-bpKQ |
| Mobile | https://m.youtube.com/watch?v=aqz-KE-bpKQ |
FAQ
What about playlist URLs?
A watch URL with &list= resolves the single video in v=.
Related
Last updated 2026-10-25