The API & License tab is where you connect Video Hub to YouTube and activate your license. Open Videos → Settings and choose the API & License tab.

A side panel shows the state of everything at a glance:
- YouTube connection — whether OAuth (recommended) is connected and whether an API key (optional) is set, with a Test connection button. The test checks the OAuth connection and the API key separately, uses 1 unit of quota for each, shows the name of the connected channel and explains any error in plain language.
- Plugin license — the license status, the masked license key and the installed version.
When something is missing, the panel shows the Next step — first YouTube access, then the license key.
Connect with OAuth
Connecting your YouTube account lets the plugin import any public video and set up automatic imports from your own playlists and channels — private and unlisted playlists included. Once connected, the API key isn’t needed.
The tab lists the steps for the current Google Cloud Console; our OAuth client ID and secret guide walks through them with screenshots:
- Create a project in Google Cloud (or select one).
- Enable the YouTube Data API v3.
- Configure the consent screen (app name, support email, audience “External”).
- Publish the app to production under Audience. While the app stays in “Testing” mode, Google expires the authorization after 7 days and imports stop until you reconnect. Google may show an “app isn’t verified” screen when you connect; since you are the only user, choose Advanced and continue.
- Create a client of type Web application and add the Authorized redirect URI shown in the tab — use the Copy button.
- Paste the Client ID and Client secret, click Save credentials, then Connect YouTube account.
Once connected, the tab shows Revoke OAuth access and Clear OAuth credentials (which removes the Client ID, Client secret and access token so you can enter new ones). Both ask for confirmation.
If Google rejects the stored authorization — it expired or was revoked — a notice appears in the admin with a Reconnect YouTube account button. Reconnecting always gets a fresh authorization.
API key (optional)
The API key is an optional fallback, used only when no YouTube account is connected. Expand the section to see the instructions, or follow Set up a YouTube API key. Restrict the key to the YouTube Data API v3 and don’t use a “Websites” restriction — the requests come from your server, not the browser.
API quota
Daily quota limit
Google gives each project 10,000 units per day by default. If you were granted more, enter the value shown in YouTube Data API v3 → Quotas in Google Cloud; the plugin’s quota estimates use it. The quota resets at midnight Pacific Time.
Quota notice
Show the estimated daily quota usage on plugin pages. The estimate is also shown in the sidebar of the Automatic import page.
License
Your license key enables automatic plugin updates — new features, fixes and compatibility with YouTube API changes — and premium support. The plugin works without a license, but won’t receive updates.
Paste the key into License key and save. Find it in your CodeFlavors account — see Set up your license key. When the license is active, the key is partially hidden and a Reset license key link removes it from the site, for example before moving the license to another site.
Moving to another site? Export your settings to a file — the API key, OAuth credentials and license key are never included, so you set them up again on the new site.