---
title: "How to Get a YouTube API Key for WordPress? (Easy Method)"
url: https://theplusaddons.com/docs/get-a-youtube-api-key-for-wordpress/
date: 2024-06-25
modified: 2026-04-09
lang: en
author: "Aditya Sharma"
description: "To generate YouTube API key follow the process -  1. For this, you have to log in to your Google account and go to the Google Developers Console. 2. If..."
image: https://theplusaddons.com/wp-content/uploads/2024/06/Youtube-API-key-1-1024x554.jpg
word_count: 292
---

# How to Get a YouTube API Key for WordPress? (Easy Method)

## 

- Log in to Google Developers Console and create a new project to generate a YouTube API key.
- Enable the YouTube Data API v3 by searching for it and clicking the ENABLE button.
- Create and restrict the API key by selecting Restrict Key under API restrictions and saving the changes.

To generate YouTube API key follow the process - 

1. For this, you have to log in to your Google account and go to the [Google Developers Console](https://console.developers.google.com/).

2. If you don’t have any project created then click on the **CREATE PROJECT **link.

![](https://theplusaddons.com/wp-content/uploads/2024/06/Create-Project-in-Google-Cloud.png)

If you have existing projects then click on the dropdown menu at the top and then click on the **New Project** link in the Select a Project popup.

3. On the next screen add your **Project name** and click the **CREATE** button.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-1.png)

4. Then select the project from the notification section or you can click on the dropdown menu at the top and select the project from the Select a Project popup.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-2.png)

5. Then click on the **+ ENABLE APIS AND SERVICES** at the top.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-3.png)

6. On that page, search for “YouTube” and select the latest API.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-4.gif)

7. On the next screen, click on the **ENABLE** button.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-5.png)

8. On the next page click on the **Credentials** from the left sidebar.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-6.png)

9. On the Credentials page, from the top, click on **+ CREATE CREDENTIALS** > **API key**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-7.png)

10. Now you’ll see your API key in a popup, click on the **copy button** to copy the key and save it in a notepad, then click on the **CLOSE** button to close the popup.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-8.png)

11. You need to restrict the key, to do this click on the three dots beside SHOW KEY and click on **Edit API Key**.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-9.png)

12. On the next page, select **Restrict Key** under the **API restrictions** section.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-10.png)

13. Then from the **Select APIs** dropdown select the API selected in step 6, i.e. **YouTube Data API v3** here, and click OK to select the API. Once done click on the **SAVE** button.

![](https://theplusaddons.com/wp-content/uploads/2024/06/youtube-api-key-11.png)

Now you can use the API key.