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



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)

1 Like