The YouTube API key you provided was not a string

Trying to set up a discord music bot, but it keeps giving me this error. Is my API wrong or is it something else?

you need to provide a valid token

1 Like

Code?

20chars20chars

When you request an API token from YouTube, you will then put this into the code. If you haven’t got one, then you need to request a V3 token from YouTube (it’s free and automated)
Instructions: https://developers.google.com/youtube/v3/getting-started

1 Like