How to obtain and use your YouTube API key
For the JukeBox to search for songs and check video lengths, it requires a YouTube API key.
To get an API key:
- Go to the Google Developers Console and sign in.
- Create a new project by clicking "Select a project" in the top-left, then "New Project" in the top-right of the popup.
- Give the project a name, then click "Create".
- With your new project selected in the dropdown in the top-left, search for "YouTube Data API v3" and select it from the search dropdown.
- Click "Enable"
- Go to the "Credentials" tab of the YouTube Data API v3 and click "Create Credentials".
- Select "API Key" from the dropdown.
You will then be presented with your YouTube API key.
To use your API key:
- Go to your copy of the JukeBox.
- Go to
/botdan_jukebox/lua/and openserver_webcalls.lua. - On line 5, paste in your API key, as shown below
localapiKey ="[PASTE KEY HERE]"
YouTube video showing how to get an API key: