The documentation says in black and white:
Before you start
You need a Google Account to register your application.
You can submit API requests.
After registering your application, choose your YouTube Data API for your services use:
- Go to the Developers Console and select the project that you just registered.
- In the sidebar on the left, expand APIs & auth . Next, click APIs . In the list of APIs, make sure you’re on the YouTube Data API v3 .
Familiarize yourself with the core concepts of the JSON (JavaScript Object Notation) data format. JSON is a common language-independent data format that provides a representation of arbitrary data structures. For more information, see json.org.
An API key is a key that uniquely identifies your application. Each application is given its own key, and restrictions are imposed on this key, how many requests can be made, how often, where, etc. {YOUR_API_KEY}
is a placeholder where you have to insert the key of your application. To do this, the application must be registered . Well, then look at point 3 and click everything in order, as indicated.