Twitch interview question

Design an API that would get user data and play a video based on a specific stream url.