Search code examples
youtubednsdomain-name

What top-level domains does youtube have?


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 ...


Solution

  • 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.