Step by step instructions for creating a Google Cloud project and a YouTube API key, which feed types such as Playlist and Search require.
How to Get a YouTube API Key
- Sign in to the Google Cloud console and create a new project.
- Go to APIs & Services » Library, search for YouTube Data API v3 and click Enable.
- Go to APIs & Services » Credentials, click Create credentials and choose API key.
- Name the key, check YouTube Data API v3 under Select API restrictions and click Create.
- Copy your new key.
Then paste the key in YouTube Feed » Settings » General. The full steps with screenshots are below.
In this guide, we’ll walk you through creating a Google Cloud project and turning on the YouTube Data API v3. Then we’ll create the key and add it to the plugin. We’ll also cover how Google’s daily quota works.
Before you get started, make sure YouTube Feed is installed and activated on your site, and that you have a Google account.
Here’s a step-by-step video tutorial on how to create your YouTube API key and add it to YouTube Feed:
Or, if you prefer written instructions, continue reading below.
Here is what we will cover:
- Creating a Google Cloud Project and API Key
- Adding the API Key to YouTube Feed
- How Does the Daily Quota Work?
- Clearing a Feed Stuck After an Account Change
- Frequently Asked Questions
Note: The Google Cloud steps below are shown as Google’s console looked when this guide was first written. Google changes its screens from time to time. A button may sit in a slightly different place. The steps stay the same.
Creating a Google Cloud Project and API Key
To get started, we’ll set up a project in Google’s developer console.
Playlist, Search, Shorts, Live Streams, and Single Videos feeds need your own YouTube API key. A Channel feed can use a connected YouTube account instead. A key is the better choice (see the FAQ at the end).
Note: If you already created an API key …
You will need to create a new project using this URL: https://console.developers.google.com/projectcreate. Then you can continue with step 3.
The new project you created must be the one selected in the dropdown at the top of the page.

1) Go to console.developers.google.com/apis. If this is your first time using the Google API site, you’ll be asked to agree to the Terms of Service.

2) Create a project by clicking the CREATE PROJECT button.

3) After giving your project a name, click the CREATE button.

4) Next, turn on the YouTube Data API v3 for your project. To do this, open the YouTube Data API v3 page and click ENABLE. Without this step, YouTube rejects the key.

5) Go to the Credentials page and click CREATE CREDENTIALS. The type of key this plugin needs is an API key. Next, select that option.

6) In the Create API key window, give your key a name. Then open Select API restrictions, check YouTube Data API v3 and click OK. The list only shows APIs you turned on in step 4. Then click Create.

7) Copy your new key. You’ll need it in the next section. If you also want to stop other sites from using your key, add a website restriction, as shown in the FAQ below.
Now that you have your key, you’re ready to add it to YouTube Feed.
Adding the API Key to YouTube Feed
Once Google gives you a key, you add it on the plugin’s Settings page.
8) From your WordPress admin sidebar, go to YouTube Feed » Settings. Then open the General tab. Next, paste the key in the API Key field. Then click Add.

The plugin checks the key with YouTube and saves it. A green check mark shows in the field when YouTube accepts the key. If YouTube does not accept it, the field shows an error mark and a message with a link back to this guide.
Note: A new key can take up to 15 minutes to start working. If a feed still shows an error message about your key after that, our error message reference explains each one.
Once a key is saved, the same button reads Update. To replace a key, paste the new one over the old one. Then click Update.

Adding the Key While Creating a Feed
You can also add the key while you build a feed. When no key is saved, the feed builder opens an API Key Required window for every feed type except Channel and Social Wall. For a Channel feed, the same window opens when no account is connected either.
For a Channel feed, the window first offers a key or a connected YouTube account. The key is the better choice. A connected account also shows private, unpublished, and draft videos and might not allow likes and comments. When the window shows these choices, click Add API Key (Recommended).

Next, paste your key in the field. Then click Add. The plugin saves the key. You can then carry on creating your feed.

Your key is now saved. Next, you’ll learn how Google’s daily quota applies to it.
How Does the Daily Quota Work?
Google gives each Google Cloud project a daily quota of requests. Each request YouTube Feed sends to YouTube with your key uses part of that quota. Every site and app that uses a key from that project shares it.
When the quota runs out, feeds that use the key stop updating until the quota resets. Google resets daily quotas at midnight Pacific Time. Google’s quota page lists the current allowance and what each type of request costs.
YouTube Feed saves each feed in its cache. Most page views don’t call YouTube at all. A longer cache time means fewer requests. Our error message reference shows how to lengthen it. It also shows what the daily limit message looks like.
If you removed a connected account and a feed still looks stuck, the next section shows how to clear it.
Clearing a Feed Stuck After an Account Change
YouTube Feed refreshes feeds in the background using the settings it saved with each feed’s cache. A feed may be cached while a connected YouTube account is in use. If that account is later removed, those saved settings can leave the feed empty or stuck on old videos. This can continue even after you add a valid key.
Next, go to YouTube Feed » Settings. Then open the Feeds tab. Finally, click Clear All Caches. Each feed is then rebuilt from its current settings. The next background update saves normally.

That’s it! You now have a YouTube API key saved in YouTube Feed.
Next, see our YouTube Feed error message reference if a feed shows a message instead of your videos.
Frequently Asked Questions
Below, we’ve answered some of the most common questions about YouTube API keys.
How do I restrict my YouTube API key?
The main restriction is the API restriction in step 6 above. It limits the key to the YouTube Data API v3, and YouTube Feed keeps working with it.
If you also want to stop other sites from using your key, add a Website restriction. YouTube Feed sends your site’s address with each request, which is why this restriction works. In the field, add these two entries one at a time.
- Your website URL including the prefix, for example
https://example.com www.googleapis.com
After you save, check that your feed still loads. If an entry is wrong, Google blocks the key’s requests and your feed can’t get new videos.
Where do I add or replace my API key?
To add a key, go to YouTube Feed » Settings » General. Then paste the key in the API Key field and click Add, or Update if a key is already saved. The feed builder also asks for a key when you start a feed that needs one.
Do I need an API key for every feed type?
The feed builder asks for a key for every feed type except Channel and Social Wall. A Channel feed can run from a connected YouTube account or from a key.
Why should I use a key instead of connecting a YouTube account?
Connecting a YouTube account also displays private, unpublished, and draft videos. It might not allow access to features like viewing likes and comments. The plugin recommends a key to avoid both.
Will I pay anything to create an API key?
The plugin’s API Key Required window says a key is free to create and only takes a few minutes. Google sets the quota and any limits on its side. For current terms, see Google’s quota page.