[youtube_api_key_form]
How to get your own YouTube Data v3 API key
You must be logged into this site to save your API key
Step 1: Go to the Google Cloud Console
-
Open your browser and go to Google Cloud Console.
-
Sign in with your Google account (or create one if needed).
Step 2: Create a New Project
-
Find the project dropdown:
-
Look at the top-left corner of the screen (next to the Google Cloud logo).
-
Click the dropdown menu (it might show “Select a project” or your current project name).
-
-
Click “New Project” (a blue button in the top-right of the popup).
-
Name your project:
-
Type a name like “My YouTube API Key” in the “Project name” field.
-
Ignore the “Location” field (leave it as default).
-
-
Click “Create”.
Step 3: Enable the YouTube Data API
-
Open the API Library:
-
In the left sidebar, hover over “APIs & Services” and click “Library”.
-
-
Search for the YouTube API:
-
In the search bar at the top, type “YouTube Data API v3”.
-
Click the result labeled “YouTube Data API v3”.
-
-
Click the “Enable” button (a blue button at the top of the API description page).
Step 4: Create an API Key
-
Go to the Credentials page:
-
In the left sidebar, hover over “APIs & Services” and click “Credentials”.
-
-
Create a new API key:
-
Click the “Create Credentials” button (blue button at the top).
-
Select “API Key” from the dropdown menu.
-
-
Copy your API key:
-
A popup will appear with your new API key (a long string like
AIzaSyD...). -
Click the copy icon (two overlapping squares) next to the key.
-
Step 5: Restrict the API Key (Optional but Recommended)
-
Click “Edit API Key” in the popup (or find your key in the credentials list later).
-
Under “API restrictions”:
-
Select “Restrict key” and choose “YouTube Data API v3”.
-
-
Click “Save”.
Step 6: Paste the Key into the Form above and save
Troubleshooting Tips
-
🔑 Key not working? Double-check:
-
The YouTube Data API v3 is enabled in Google Cloud Console.
-
Billing is enabled (Google requires this even for free quotas).
-
The API key is pasted without spaces or typos.
-
-
🔒 Always restrict your API key to prevent unauthorized use.