Go to console.cloud.google
Create and name a new project called youtube-api
,
when is complete, click on it to open it
Enable the youtube api library by going to library and searching for youtube api ...version
Click CREATE CREDENTIALS
Choose which library you want to use, in our case 'youtube', then click Public data
because
Oauth is needed for User data
This gives us the api key
Anytime you need the api key, go to the project then the Credentials
tab on lhe left, then the
api key
Pase the api into a variable in your script