ES Youtube Playlist Embed documentation How to Get a YouTube API Key for ES Playlist Embed
ES Youtube Playlist Embed needs a YouTube Data API v3 API key to load playlist information such as video titles, descriptions and thumbnails. For this public-data use case, you need an API key; you do not need to configure OAuth just to display a public playlist.
Before you start
- You need a Google account.
- You need access to Google Cloud Console.
- You should know the domain where ES Youtube Playlist Embed will run.
1. Create or select a Google Cloud project
- Open Google Cloud Console and sign in.
- Use the project selector at the top of the page.
- Select an existing project or create a new project for your website.
Using a dedicated project makes API usage, quota and credentials easier to manage later.
2. Enable YouTube Data API v3
- In Google Cloud Console, open APIs & Services → Library.
- Search for YouTube Data API v3.
- Open the API and click Enable.
The API must be enabled in the same project that will contain your API key.
3. Create the API key
- Open APIs & Services → Credentials.
- Click Create credentials.
- Select API key.
- Copy the generated key and keep it available for the module configuration.
Google may offer to restrict the key immediately. For a production website, restrictions are strongly recommended.
4. Restrict the key to your website
An unrestricted API key can be used from other websites if it becomes exposed. Restricting the key reduces that risk.
- Open the API key from the Credentials page.
- Under Application restrictions, choose Websites.
- Add the website or websites that should be allowed to use the key.
For example:
https://example.com/*
https://www.example.com/*
Add only the variants you actually use. If the extension also runs on a demo or staging subdomain, add that host separately.
5. Restrict the key to YouTube Data API v3
- In the same API key settings, find API restrictions.
- Choose Restrict key.
- Select YouTube Data API v3.
- Save the key.
Google recommends using both application restrictions and API restrictions for production API keys.
6. Add the key to ES Youtube Playlist Embed
- In Joomla Administrator, open your ES Youtube Playlist Embed module.
- Open the API Settings tab.
- Paste the API key into YouTube API Key.
- Save the module.

7. Test the key
Open the page where the module is published. If the key, API and playlist configuration are valid, the custom playlist list should load its video titles and thumbnails.
If the playlist does not load, check:
- YouTube Data API v3 is enabled in the same Google Cloud project.
- The API key copied into Joomla is complete and contains no extra spaces.
- Your website restriction includes the exact domain or subdomain where the module is running.
- YouTube Data API v3 is allowed under the key's API restrictions.
- The Google Cloud project still has available API quota.
Restriction changes can take a short time to propagate, so retest after a few minutes if you have just changed the key settings.
Official Google documentation
After creating the key, continue with YouTube API Key & Playlist Setup to add your Playlist ID and configure the module.