How To Generate YouTube Data API For Music Bot 1

How To Generate YouTube Data API For Music Bot

I have seen many people asking How To Generate YouTube Data API For Music Bot well I am here to explain how you can generate YouTube Data API. Its very simple to generate any google API just follow me if you want to generate YouTube Data API for your bot.

Steps To Generate YouTube Data API For Music Bot

Go to Google Developer Console.

Select a project or create a new one

How To Generate YouTube Data API For Music Bot 2
How To Generate YouTube Data API For Music Bot

I’ll be creating a new project to show you guys how it works. Click on New Project, add your project name, location if you want to or leave it on No Organization and then click on create

How To Generate YouTube Data API For Music Bot 3

Now open the navigation menu in left side and click on API & Services

How To Generate YouTube Data API For Music Bot 4

Click on ENABLE APIS AND SERVICES & Search for YouTube Data API

How To Generate YouTube Data API For Music Bot 5

Enable the API, go to credentials

How To Generate YouTube Data API For Music Bot 6

CREATE CREDENTIALS and Click on API Key

How To Generate YouTube Data API For Music Bot 7

You will get your API key, Now you will have to restrict the usage of that API key then only you can use it

How To Generate YouTube Data API For Music Bot 8

Under API Restriction click on Restrict key, tick Youtube Data API v3 and save it.

That’s All Now use this youtube api key in your music bot and listen to songs.

Conclusion

In this post I have shown you How To Generate YouTube Data API For Music Bot. If you are facing some issue please let me know in the comments I’ll be glad to help you guys out.

Also Read – Guide to Create Discord Music Bot with discord.js v12

Leave a Reply

Your email address will not be published. Required fields are marked *