Acquire YouTube API Key


#1

Applies to Nightly Build 31 May 2017 and later.

In order to ensure that the YouTube API key that is registered to PhantomBot does not become saturated, there are controls within PhantomBot to help throttle specific operations. If you would like to lift those restrictions, you simply need to acquire your own YouTube API key.

First, shutdown PhantomBot, then:

Step 1 - Login to Google Developers Console: https://console.developers.google.com
Step 2 - Click on Select a Project drop down.
Step 3 - Click on the + button to create a new project.

Step 4 - Name your project, click on the Create button.

Step 5 - Click on Select a Project drop down.
Step 6 - Select your project from the Recent tab – if not present, select the All tab.

Step 7 - Ensure that you are on the Dashboard by clicking the Dashboard menu option on the left.
Step 8 - Click on Enable API text button near top of page. If asked to agree to Terms of Service, please read, and if you accept, do so.
Step 9 - Click on YouTube Data API

Step 10 - Click Enable text button near top of page.

Step 11 - Click on Create Credentials

Step 12 - Click on API Key

Step 13 - OPTIONAL. You may choose to restrict your API Key to only your IP address, that is up to you.
Step 14 - Place the acquired API Key into botlogin.txt as youtubekey=API_KEY_VALUE.

Example: If the API key from Google was Iedohb0ieleiquahgohshek7quohDoDe7ohtaqua you would add the following to botlogin.txt:

youtubekey=Iedohb0ieleiquahgohshek7quohDoDe7ohtaqua

Restart PhantomBot.

Note the Following
If you receive a No data returned error while importing playlists or trying to perform a song request, check that you copied your API key correctly and did not apply any restrictions that may be causing an issue.

Note that you could always provide your own key, the Nightly Version of 31 May 2017 and beyond simply detects that situation and acts accordingly.


YouTube API Key
[Java] Youtube Playlist Importer
Load a whole Youtube Playlist (3000+ Songs)
YouTube Playlist Importer
Playlist API key