Validate the URL and extract the video ID.
Formulate the API request, decode it, get the title, description, view, and rating information and encode to a JSON array for output