What top-level domains does youtube have?

jave.web picture jave.web · Mar 3, 2014 · Viewed 32.5k times · Source

I am trying to identify youtube link (generally), and I wonder what top-level domains is youtube using?

So far I know about:

  • .com (youtube.com)
  • .be (youtu.be)

Are there any others?

PS: for those looking for checking youtube/vimeo video particulary I would recommend to check how to check the valid Youtube url using jquery ...

Answer

djluko picture djluko · Mar 18, 2015

At the moment, YouTube videos can be accessed by two kinds of link, either the usual URL generated by the UI itself, as you click from one video to the next:

https://www.youtube.com/watch?v=tRgl-78sDX2

Or through a sharing URL, created within the UI by clicking the "share" button:

https://youtu.be/6DzSAaNQHR8

Regarding the second part of your question, what domains are required for access to YouTube? Unfortunately this is a moving target, as the YouTube changes. At the time of writing (Mar 2015), that list is as follows:

*.youtube.com
*.googlevideo.com
*.ytimg.com

In addition to the core domains above, some ancillary domains are also needed to display the ads, etc on most YouTube pages:

apis.google.com
*.googleusercontent.com
*.gstatic.com

The bulk of the traffic itself comes from *.googlevideo.com. Beginning in late 2014, YouTube started progressively enabling SSL on the youtube.com and googlevideo.com domains. You'll need to be aware of this if you're using this information on a filtering or caching device.

Also note this was tested through a browser; native clients (iOS, Android, etc) may operate differently.