This guide will show how to create and set up Youtube API key On kodi 20 Nexus. Without this API key you won’t be able to use Youtube addon on kodi nor the other addons that depend on it in providing video content.
YouTube is the 2nd largest search engine and the largest video search engine with over 30 million active users per day.
The youtube addon has been causing problems in Kodi and this means that many addons that depend on it are suffering.
The creator of the youtube addon has recommended that we have an API to be able to use the addon without problems.
There are other methods without using the API but they are ephemeral or sometimes do not work at all.
How to create Youtube API key on kodi
If you are using Kodi 20 Nexus and would like to be able to view YouTube (without ads!!) inside your installation, here is an all-in-one guide to:
- Install YouTube on Kodi
- Configure your API key via the Google cloud platform
- Set up your API in the Youtube addon
Install Youtube addon
The Youtube addon is part of the official kodi repository. So here is how to do its installation:
Open Kodi and go to the Settings (gear icon)
Click on “Add-ons“.
Click on Install from a repository
Now you will see the list of all the repositories present (that you have already installed) on your kodi installation.
Click on “Kodi Add-on repository“.
Click on the “Video Add-ons” category
Choose Youtube
… and click Install!
In a few seconds, a popup message will inform you that the addon is installed.
When the installation is completed, you will see some instructions in your screen. You will be asked for some simple information and you will have to mention your preferences.
- Language preference
- Localization preference
- etc…
All this is normal and will only take about 5 minutes of your time.
How to create the Youtube API key
Now that we have installed Youtube, we can leave our kodi screen and focus on our PC screen (I recommend using a PC rather than a mobile device for this procedure – although it is also possible to do it mobile)
IMPORTANT:
You must be signed in to your Google account for the duration of this procedure. If you don’t have one, you will absolutely have to create one.
Go to https://console.developers.google.com/
If you are not logged in with your google account enter your username and password.
Accept the terms of service and click on accept and continue.
If the drop-down menu does not appear, click the inverted arrow to start.
If you have already created a project on google cloud platform, it will be written select a project rather than create a project on the first page of the dashboard.
At this point, a contextual menu will appear and you can then click on New project
In Project name , you put what you want (Youtube Project for example) then click on Create .
Now go to: console.developers.google.com/apis/library and click on YouTube Data API v3
Click on Enable
So you have just enabled the module that will allow you to create your API key. This is what we will complete together in the next step…
2.1 – Get the API
Now go to console.cloud.google.com/apis/credentials.
From this screen:
- Select Credentials – this is the symbol where you see a key in the left column of the screen
- Click on Create Credentials
- Click on API key in the drop down menu
Now copy the API key and paste it in a notepad for later use
That’s it, your API is now created. Now we need to give the permissions so that it can be used. To do so, we need to create:
- A client id
- A secret client id
What we will do below…
2.2 – Creation of identifiers (OAth client)
Good! the popup closed, and above all, your API Key copied and pasted in a place easy for you to retrieve,
- Select OAuth Consent Screen in the left column
- Under User Type, select External
- Click on Create.
In the Application name under App Information, give a name such as YouTube IPA and fill the required field then scroll down and click on Save.
- Select the Credentials tab again in the left column
- Click on Create Credentials at the top
- Now click on OAuth client ID.
Select the application type. In my case it is TVs and limited input devices
In the Name field, enter a name such as YouTube API Kodi
Click on Create
Now, copy both your Client ID and your Secret Client and save them to a notepad for later use. As you did earlier for your API key
Select the OAuth consent screen again in the left column
Scroll down and click on Add users in the Test users section and enter your Gmail from which you are connected to Google
Set up Youtube API key on kodi
Believe it or not, you have completed this long and tedious adventure! You with everything you need to complete the final step of entering your information into the Youtube addon for kodi.
To be all set, have the information noted earlier on your notepad handy. Either:
- Your API key
- Your client ID
- Your secret client
There’s only one more step to go…And you’ve already completed the hardest part. Setting up your key in Youtube is pretty easy
- Go back to Kodi and open the YouTube addon
- Select Settings
Scroll down to the very bottom of the options, and select API and enter all the credentials you noted before:
The API key
API ID
API Secret
- Make sure you have enabled:
- Enable API configuration page
- Above all, don’t forget to press OK so that your changes will register correctly
3.1 – Connecting Youtube to Kodi
In the home menu of the Youtube addon, click on Sign in
Note the code provided on the screen and access google.com/device from another device (mobile or pc)
From your other device, enter the code and click Continue
Click on Allow
If all goes OK, you will get a success notification popup
You will receive another Authorization Code. Note this down
Go to www.google.com/device again and enter the second Code you just received and press Continue
Select Allow.
Again, a succes notification will popup
You’re done!
Congratulations, you have just finished the steps to create and set up Youtube API key On kodi 20 Nexus… Now all you have to do is enjoy Youtube to the max! After all the effort you put into it, it’s normal to abuse it a lot, isn’t it?