Youtube-dl is executing code provided by Google/YouTube, for World Wide Web user agents, as a World Wide Web user agent, and meant to be accessed and run by user agents in order to access YouTube content. That is, youtube-dl's operation is entirely within YouTube's technical design and intent.
From TFA.