How to Get YouTube API Key for Free [2026 Guide]

Key Takeaways

  • A YouTube API key provides authorized read access to YouTube's Data API v3, allowing retrieval of videos, playlists, and channel data.
  • Every Google Cloud project with the YouTube Data API v3 receives a default quota of 10,000 free units per day, resetting at midnight Pacific Time.
  • The Plus Addons for Elementor's Social Feed Widget (Pro) supports displaying YouTube channels, playlists, and user feeds in Grid, Carousel, and Masonry layouts.
  • Creating a YouTube API key in Google Cloud Console takes about 10 minutes and involves six specific steps including enabling the YouTube Data API v3.
  • Restricting your YouTube API key to your domain prevents unauthorized use and is recommended before adding it to any WordPress plugin.

Getting a YouTube API key is free and takes about 10 minutes. In this guide, you’ll learn the exact steps to generate one in Google Cloud Console, restrict it for security, and connect it to your WordPress site using Elementor.

A YouTube API key is a unique authentication token issued by Google that gives your website authorized read access to YouTube’s Data API v3. It lets your site retrieve videos, playlists, and channel data from YouTube’s database without manually embedding each video. According to Google’s YouTube Data API documentation, every project gets 10,000 free quota units per day by default.

You can also get an Instagram access token to display your Instagram feed on your site the same way.

All steps in this guide were verified in April 2026 by the POSIMYTH team against Google Cloud Console and YouTube Data API v3 documentation. Tested on WordPress 6.9 with The Plus Addons for Elementor v6.4.

Table Of Contents

What Is a YouTube API Key?

A YouTube API key is a unique alphanumeric string issued by Google that authenticates your application’s requests to YouTube’s Data API v3. It identifies your project, applies your quota limits, and grants read access to YouTube’s public data. Without it, YouTube’s servers will reject any programmatic data request from your site.

You use it to read data from YouTube, not to upload or manage content. Common uses on WordPress sites include displaying a channel’s latest videos, embedding a specific playlist, or building a searchable video grid from a keyword.

Why Should You Use the YouTube API on Your Website?

If video content drives your marketing, connecting your YouTube channel to your website keeps visitors engaged and removes the manual work of updating embeds every time you publish a new video.

Benefits of getting a youtube api key for wordpress
  • Re-use existing content: Your published YouTube videos appear on your site automatically. No manual embeds or copy-paste work required on each publish.
  • Dynamic updates: Your video feed refreshes with new uploads through the API connection. Publish on YouTube, and your site reflects it without any extra steps.
  • Better dwell time: Video content increases time-on-page. Visitors who watch a video engage more deeply with your content.
  • Customization: Filter videos by playlist, channel, search query, or specific video IDs. You control exactly what appears on each page.

How to Get a YouTube API Key for Free [Step-by-Step]

Follow these six steps to generate a free YouTube API key in Google Cloud Console. The whole process takes under 10 minutes on a standard internet connection.

Step 1: Sign In to Google Cloud Console

Go to console.cloud.google.com and sign in with your Google account. If you do not have one, create a Google account first. Your API key will be tied to the Google account you use here.

Step 2: Create a New Project

After signing in, look for the project selector in the top navigation bar. Click it, then select New Project from the panel that opens.

Create a new project in google cloud console to get a youtube api key

Enter a project name, select an organization if applicable, then click Create. The API key you generate in the next steps will belong to this project. If you manage multiple Google Cloud projects, confirm the correct one is selected in the project selector before continuing.

Step 3: Navigate to the API Library

From your project dashboard, open the left navigation panel and go to APIs & Services > Library. This is where you find and activate individual Google APIs for your project.

Navigate to the api library in google cloud console

Step 4: Enable YouTube Data API v3

In the API Library, search for YouTube Data API v3 or scroll to the YouTube APIs section and click on it.

Select youtube data api v3 in the google cloud api library

Click Enable on the API detail page. This activates the YouTube Data API for your current project. Without this step, your API key will not have permission to retrieve YouTube data, even after you create it.

Step 5: Create Your API Key Credential

After enabling the API, you will be taken to the YouTube Data API v3 overview page. Click Create Credentials at the top of the page.

Click create credentials on the youtube data api v3 overview page

In the credential wizard that appears, select YouTube Data API v3 in the first field, then check Public data to confirm you are accessing YouTube’s public content.

Select youtube data api v3 and public data in the credential wizard

Step 6: Copy and Save Your API Key

Click Next and your API key will generate automatically. It will appear in a popup on screen. Copy the key and store it somewhere secure, such as a password manager or your site’s settings panel. Do not share this key publicly or add it to any public code repository.

Your key is now active and ready to use.

How to Restrict Your YouTube API Key (Recommended)

By default, a newly created API key is unrestricted, meaning it can be used from any website, app, or server. If someone else obtains your key, they can make requests that count against your daily quota, potentially leaving your site with no available quota mid-day. Based on our experience managing API keys across client sites, an unrestricted key is the most common reason for unexpected quota exhaustion on small WordPress sites.

Google recommends restricting API keys before using them in production, as noted in the YouTube API credential documentation. Here is how to do it:

  1. Go to APIs & Services > Credentials in Google Cloud Console.
  2. Click on the name of the API key you just created.
  3. Under Application restrictions, select HTTP referrers (websites).
  4. Click Add an item and enter your domain in the format: yourdomain.com/*
  5. Click Save.

After this, the key will only accept requests from your domain. This takes about two minutes and is worth doing before you add the key to any WordPress plugin or settings page.

YouTube API Quota: What You Get for Free

Every Google Cloud project that enables the YouTube Data API v3 receives a default quota of 10,000 free units per day, according to Google’s official YouTube Data API documentation. This quota resets at midnight Pacific Time and is shared across all API keys within the same project.

Different API operations consume different amounts of quota. In our testing with The Plus Addons for Elementor’s Social Feed Widget on a standard WordPress install, a page displaying 8 YouTube videos from a channel uses roughly 2 to 10 quota units per page load, depending on which data fields are requested. For most WordPress sites with standard traffic, the 10,000-unit daily limit is more than sufficient.

OperationQuota CostPractical Impact
List videos or playlist items1 unitVery low cost per feed load
Retrieve channel details1 unitMinimal impact for most sites
Search request100 units100 searches per day on the free tier
Video upload via APIUp to 1,600 unitsOnly relevant if managing uploads via API

Source: YouTube Data API Quota Calculator, Google for Developers

If your site uses search-based video feeds (100 units per request), you will exhaust the free quota faster than a channel-based feed. In that case, you can submit a quota extension request through the Google Cloud Console. Additional quota beyond the free tier is subject to Google Cloud’s standard pricing.

How to Use Your YouTube API Key in WordPress

Once you have your API key, you can display your YouTube channel on any Elementor page using the Social Feed Widget (Pro) by The Plus Addons for Elementor by POSIMYTH. It supports YouTube channels, playlists, handles, search results, and user feeds in Grid, Carousel, and Masonry layouts.

If you want a YouTube-only feed with additional layout controls, the dedicated YouTube Feed Widget (Pro) is also available in The Plus Addons for Elementor.

Here is how to connect your API key using the Social Feed Widget:

  1. Install and activate The Plus Addons for Elementor on your WordPress site.
  2. Go to WP Admin > Plus Settings > Widgets, find the Social Feed Widget, and enable it.
Enable the social feed widget in the plus addons for elementor settings
  1. Open the page or post you want to edit in your WordPress dashboard and launch the Elementor editor.
  2. Add the Social Feed Widget from the Elementor widget panel to a new section on the page.
  3. Select your preferred layout style (Grid, Carousel, or Masonry) from the widget options.
  4. In the left panel, navigate to the Social Feed section and select YouTube as the source from the dropdown menu.
Select youtube as the source in the social feed widget settings
  1. Paste your YouTube API key into the Access Token field.
Paste the youtube api key into the access token field in the social feed widget
  1. From the YouTube Type dropdown, choose how to pull videos: User Feed, Handle, Channel, Search, or Playlist.

Your live YouTube feed will now appear on the page. From the widget settings panel you can adjust thumbnail size, video count, category filters, and display style. After embedding your YouTube feed in Elementor, you can also explore the best YouTube plugins for WordPress for additional integration options.

20 checklist for wordpress site maintenance how to get youtube api key for free [2026 guide] from the plus addons for elementor
Do you Manage WordPress Websites? Download Our FREE E-Book of 20+ Checklist for WordPress Site Maintenance. ​
[contact-form-7 id="125716"]

Is Getting a YouTube API Key Worth It?

Yes, for any WordPress site that actively publishes YouTube content. The process takes under 10 minutes, costs nothing within the 10,000-unit daily quota, and gives you a live, automatically updating video connection instead of manually embedding each video one at a time.

Best for: Site owners with an active YouTube channel who want their latest videos to appear on their site without coding or manual updates after each upload.

Not needed if: You only want to embed one or two static videos. A standard YouTube iframe embed handles that without any API key.

Once you have the key, the Social Feed Widget from The Plus Addons for Elementor (Pro) gives you the fastest path to a fully styled, customizable YouTube feed in Elementor with no code required. The Plus Addons also includes 120+ widgets across categories, all in one plugin. See the pricing page to explore what the Pro plan includes.

About the Author

Photo of Aditya Sharma CMO of The Plus Addons for Elementor
CMO · The Plus Addons for Elementor · 7 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

Related Frequently Asked Questions

How to get YouTube API key?

To get a YouTube API key, sign in to Google Cloud Console, create a new project, navigate to the API Library, enable YouTube Data API v3, create your API key credential, and then copy and save your API key. This process takes about 10 minutes and allows your site to access YouTube's data.

What if my YouTube API key is not working?

If your YouTube API key is not working, check if you have enabled the YouTube Data API v3 for your project. Without enabling this API, your key will not retrieve any data. Additionally, ensure that your API key is restricted properly to prevent unauthorized use, which could exhaust your quota.

What are the best practices for restricting my YouTube API key?

Best practices for restricting your YouTube API key include limiting its use to specific HTTP referrers, such as your domain. This prevents unauthorized access and ensures that your API quota is not consumed by external requests. You can set this restriction in the Google Cloud Console under APIs & Services > Credentials.

Is getting a YouTube API key worth it for small websites?

Getting a YouTube API key is worth it for small websites that publish YouTube content regularly. It automates the process of displaying videos, saving time on manual embeds. However, if you only need to embed a couple of static videos, a standard YouTube iframe embed may suffice without needing an API key.

Last reviewed: April 30, 2026