Skip to content

Personal API Keys

MoojMidge edited this page Apr 7, 2026 · 4 revisions

This page outlines how to create and use your own set of API keys for use with the YouTube add-on.

API Key Creation

Updated instructions can be found at https://github.com/anxdpanic/plugin.video.youtube/issues/1095

Configure the Add-on

The final step is to add your keys to the YouTube add-on, this can be done using one of the following methods.

Method 1

1.1 Configure the add-on:

  • Settings > API > API Key = Your API key
  • Settings > API > API Id = Your OAuth2 Client ID
  • Settings > API > API Secret = Your OAuth2 Client Secret

Method 2

2.1 Configure the add-on:

  • Settings > API > API Key = BLANK/EMPTY
  • Settings > API > API Id = BLANK/EMPTY
  • Settings > API > API Secret = BLANK/EMPTY
  • Settings > API > Enable API configuration page = ENABLED

2.2 You should then be able to update your keys by visiting http://<IP address of Kodi device>:<port>/youtube/api

The IP address can be found from Settings > Advanced > HTTP Server > Check my IP
The port used is Settings > Advanced > HTTP Server > Port which by default is 50152

You can bookmark the configuration page for quick updates in the future.

2.3 Configure the add-on to disable the API Configuration page after use:

  • Settings > API > Enable API configuration page = DISABLED

Method 3

3.1 Configure the add-on:

  • Settings > API > API Key = BLANK/EMPTY
  • Settings > API > API Id = BLANK/EMPTY
  • Settings > API > API Secret = BLANK/EMPTY

3.2 Shutdown Kodi

3.3 Manually edit userdata/addon_data/plugin.video.youtube/api_keys.json to include the following content.

Refer to https://kodi.wiki/view/Userdata for details on the location of this file on your device.

NOTE: With this method you'll need to remove .apps.googleusercontent.com from your Client ID

{
    "keys": {
        "developer": {}, 
        "personal": {
            "api_key": "API KEY HERE", 
            "client_id": "CLIENT ID HERE", 
            "client_secret": "CLIENT SECRET HERE"
        }
    }
}

3.4 Restart Kodi

Sign In

During the add-on sign in process you will be asked to Connect a device as many as three times.

The second time you Connect a device, you will be prompted with:

This app isn't verified
This app hasn't been verified by Google yet. Only proceed if you know and trust the developer.

From there clicking Advanced and Go to <your project name> (unsafe) allows you to complete the process.

Clone this wiki locally