To show YouTube videos in Video Block of HybridMag Pro, you need your own YouTube API key. It is free, takes about 5 minutes, and you only need to do it once. This guide walks you through every step.
Before you start
You will need:
- A Google account (the same one you use for Gmail or YouTube works fine)
- About 5 minutes
- No credit card or billing details are required for normal use
Step 1: Open the Google Cloud Console
- Go to https://console.cloud.google.com/.
- Sign in with your Google account.
- If Google asks you to accept the Terms of Service, tick the box and click Agree and continue.
Step 2: Create a new project
A project is simply a container that holds your API key.
- At the top of the page, click the project selector (the dropdown next to the Google Cloud logo).
- In the window that opens, click New Project.
- Enter a project name, for example
My Website Videos. - Leave the other fields as they are and click Create.
- Wait a few seconds, then make sure your new project is selected in the project selector at the top.
Step 3: Enable the YouTube Data API v3
New projects have all APIs switched off by default, so you need to turn on the YouTube one.
- Open the left-hand menu (the β° icon) and go to APIs & Services β Library.
- In the search box, type
YouTube Data API v3. - Click the result named YouTube Data API v3.
- Click the blue Enable button.
Step 4: Create your API key
- In the left-hand menu, go to APIs & Services β Credentials.
- Click + Create credentials at the top of the page.
- Choose API key from the list.
- Google will generate your key. Depending on your version of the console, you may see a pop-up showing the key or a form asking you to name the key and set restrictions. ( If you see this give it any name you want or keep the default name. Then Select YouTube Data API v3 from the Select API restrictions dropdown. Then click on Create button )
- Click the copy icon next to the key and paste it somewhere safe, such as a password manager.
Your key will look something like this (this is only an example, not a real key):
AIzaSyBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
π· Screenshot to add: The Credentials page with the + Create credentials menu open and API key highlighted.

Choose API key from the list.
Step 5: Restrict your API key (recommended)
Restricting your key means that if it is ever copied by someone else, they cannot use it for anything other than YouTube videos. It takes less than a minute.
- On the Credentials page, find your key under API keys and click its name (or the pencil/edit icon).
- Under API restrictions, select Restrict key.
- In the dropdown, tick YouTube Data API v3, then click OK.
- Under Application restrictions, you can leave None selected. If you prefer to restrict the key to your own website, choose Websites and add your site address. Only do this if you are sure of your site address, as a wrong entry will stop the videos from loading.
- Click Save.
Note: Changes can take a few minutes to take effect.
Step 6: Add the key to the Video Block
You only need to add the key once. All Video Blocks across your site use the same key, so adding it in one place is enough. You can add it in either of two places.
Option 1: From the HybridMag settings
- Go to Dashboard β HybridMag β Settings β YouTube API.
- Find the field labelled YouTube API Key and paste your key.
- Click the Save button.
Option 2: From any Video Block
Paste your key into the YouTube API Key field in the settings of any Video Block on your site. Adding it to one block is enough. If there are one or more blocks in the same page, after adding the key to a one block hit the publish button and refresh the page.
Usage limits and cost
- The YouTube Data API is free to use up to a default limit of 10,000 units per day for each project.
- Different requests use different amounts of this allowance. Simple lookups cost very little, while searches cost more.
- The allowance resets once a day. For most websites, the free limit is plenty.
- If you ever need more, you can request a higher quota from the same Google Cloud Console.
Troubleshooting
“API key not valid” or videos not loading
- Check that you copied the whole key, with no extra spaces at the start or end.
- Make sure YouTube Data API v3 is enabled for your project (Step 3).
- If you restricted the key, make sure YouTube Data API v3 is selected under API restrictions.
- If you added a website restriction, check that your site address is entered correctly.
- If you changed the restrictions a moment ago, wait a few minutes and try again.
“Quota exceeded” error
Your site has used up the daily free allowance. It resets automatically the next day. If this happens often, you can request a higher quota in the Google Cloud Console.
I can’t find my key again
Go to APIs & Services β Credentials in the Google Cloud Console and click your key’s name to see it again.
Keeping your key safe
- Do not share your key publicly, for example in forum posts or screenshots.
- Do not post it on social media or in public code repositories.
- If you think your key has leaked, go to APIs & Services β Credentials, delete the key, and create a new one by following Step 4 again. Then update the key from Dashboard > HybridMag > Settings > YouTube API.
Need help?
If you get stuck, contact us at https://themezhut.com/contact/ and we will be happy to help.








