Searching for a YouTube video
In this section, we will learn about integrating a YouTube-related search video. YouTube Data API Version 3.0 is the new API to access YouTube data. It requires the API key that has been created in the previous section.
The main steps that we have to follow to do a YouTube search are:
- After adding the
YouTube Searchbutton, click on it to trigger the search process.
- The script reads the
data-booktitleattribute to get the title. This will serve as a keyword for the search. Check the following screenshot for the HTML markup showing the
- Then, it creates an AJAX request to make an asynchronous call ...