PivityGmodStore

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:

  1. Go to the Google Developers Console and sign in.
  2. Create a new project by clicking "Select a project" in the top-left, then "New Project" in the top-right of the popup.
  3. Give the project a name, then click "Create".
  4. 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.
  5. Click "Enable"
  6. Go to the "Credentials" tab of the YouTube Data API v3 and click "Create Credentials".
  7. Select "API Key" from the dropdown.

You will then be presented with your YouTube API key.

To use your API key:

  1. Go to your copy of the JukeBox.
  2. Go to /botdan_jukebox/lua/ and open server_webcalls.lua.
  3. On line 5, paste in your API key, as shown below
  4. local apiKey = "[PASTE KEY HERE]"


YouTube video showing how to get an API key:



Can't find what you're looking for?

Contact support