Skip to content

How to get A Youtube API Key

If you're curious about getting more out of YouTube with their API service, now you can get an API Key with less fuss.

If you’re curious about getting more out of YouTube with their API service, now you can get an API Key with less fuss. In this blog, I’ll show you how to get your own YouTube API key easily.

WARNING: This is process requires some advanced knowledge of API’s and Google’s Cloud Platform and assumes you know how to access it and have a billing account for it. A future separate blog post will be made on how to access and verify your Google Cloud Console Platform.

Okay, let’s get straight into it. In this blog, I am going to create a dummy YouTube API key for this exercise.

Alright, let’s start by going to the API Library within your project – it will be in the left menu. You will notice that I am already in my project ‘My API Collection’. You will obviously have a different project name.

Now, simply type in ‘Youtube’ in the ‘Search for APIs & Services bar’ and press ‘Enter’ on your keyboard.
See the results below.

A message that brings tears to a developer’s eyes.

Now that you have the results, you can see that you can use the various YouTube API services available. We are going to use the V3 API.

Now just enable the API for your project.

Once you have enabled the API, you will be redirected to the Overview page for the API.
All you need to do now is click on the ‘Credential’ menu on the left or the ‘Create Credentials’ button on your left to create your API keys.
See below:

Once you have done that, you will be given the option to create your credentials. Now choose the API using the drop-down button. We will be choosing the YouTube V3 one that we just enabled.

Choose your data access options. Either you will be using ‘User data’ or ‘Public data’. For our purposes, we will be using Public data. The other option is for when you need to have users information displaying in your app and this will need verification from Google. Once you have made your choice of ‘Public data’, click on the ‘Next’ button. This will give you an API key pop-up. Copy your API key.

Now that you have your API Key, you can copy it and keep it safe. DO NOT LOSE IT or your project info might be lost.
Please make sure that you also click on the Restrict Key option. This is for security purposes so that nobody else has access to your key. If you want to know how to restrict it, follow this post:

If your project is a web based one such as a website or web-app, then choose the ‘HTTP referrers’ restriction under the ‘Application restrictions’.
If your project is a mobile app one, then choose the corresponding options of Android or iOS. You will need to do both if you are planning to publish your app.


  1. Go to Google Cloud Console.
  2. Make sure your account is activated.
  3. Create a Google Cloud Console Project.
  4. You should be automatically inside the new project. From here, go to the API Library via the menu on the left.
  5. Search for YouTube API and choose V3.
  6. Enable the API.
  7. Create Credentials for it with a key.
  8. Copy the key and keep it safe for use in your projects.
  9. If you know how, please restrict the API key.

And there you have it. If you are looking at how to restrict your API Key, please follow this blog here:

If this was helpful, be sure to say ‘thanks’ in the comments below.

Stay Awesome!

Join to get updates

Similar Posts

What is a Landing Page?

Many times a web-developer or a business is faced with making the decision to create a landing page. But what is it and why create one?

Read More »
API Link chain

What Is An API

Have you ever wondered what API really means and what it’s supposed to do? Find out in this post.

Read More »
No more posts to show