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

Key Takeaways

  • Google Developers Console allows users to create a new project for generating a YouTube API key.
  • YouTube Data API v3 must be enabled after selecting the project in the Google Developers Console.
  • API key restrictions can be set by selecting Restrict Key under the API restrictions section.
Table Of Content

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 you don’t have any project created then click on the CREATE PROJECT link.

Create project in google cloud how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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.

Youtube api key 1 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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.

Youtube api key 2 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 3 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 4 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 5 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 6 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 7 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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.

Youtube api key 8 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 9 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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

Youtube api key 10 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

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.

Youtube api key 11 how to get a youtube api key for wordpress? (easy method) from the plus addons for elementor

Now you can use the API key.

About the Author

Photo of Aditya Sharma CMO of The Plus Addons for Elementor
CMO · The Plus Addons for Elementor · 10 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressElementorn8nAIClaudeAutomationServer
Get Instant Answers to all your questions about The Plus Addons for Elementor, trained on 1000+ Docs and Videos

Related Frequently Asked Questions

What if I can't create a new project in the Google Developers Console?

If you encounter issues creating a new project, ensure you're logged into the correct Google account. Sometimes, account permissions can restrict project creation. Check if you have the necessary permissions or try using a different Google account. If you're still unable to create a project, consider checking Google's support resources for troubleshooting guidance.

Can I use the YouTube API key with The Plus Addons for Elementor?

The YouTube API key can be integrated into WordPress sites using The Plus Addons for Elementor, which enhances Elementor's capabilities. This integration allows you to pull YouTube content directly into your Elementor-built pages, providing a seamless way to display video content. Make sure to follow the API key restrictions for optimal performance.

What is the best practice for restricting the YouTube API key?

Restricting your YouTube API key is crucial for security and to prevent unauthorized usage. After creating the key, select 'Restrict Key' under the API restrictions section. Choose the YouTube Data API v3 to limit access specifically to that API. This practice minimizes the risk of your key being abused and ensures that it is only used for intended purposes.

What happens if I don't restrict my YouTube API key?

Failing to restrict your YouTube API key can lead to unauthorized access and potential overage charges if the key is misused. Without restrictions, anyone can use your key, which could result in unexpected costs or your key being disabled by Google due to excessive usage. Always restrict your key to specific APIs to safeguard your project.

How do I know if my YouTube API key is working correctly?

To verify if your YouTube API key is functioning, you can test it by making a simple API request using tools like Postman or cURL. If the response returns data without errors, your key is working correctly. If you receive an error message, check your key restrictions and ensure it is enabled for the YouTube Data API v3.

What should I do if I lose my YouTube API key?

If you lose your YouTube API key, you can easily regenerate it by going to the 'Credentials' section in the Google Developers Console. From there, create a new API key and update your WordPress site with the new key. Remember to restrict the new key appropriately to maintain security and prevent unauthorized access.

Last reviewed: April 9, 2026