How to Get YouTube API Keys
You need:
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET
✅ Step 1: Go to Google Cloud Console
👉 https://console.cloud.google.com/
✅ Step 2: Create a New Project (or select an existing one)
- Click the project dropdown at the top.
- Click New Project.
- Name it (e.g.,
yt-youtube-app) → Click Create.
✅ Step 3: Enable YouTube Data API v3
- In the left menu → Go to APIs & Services > Library.
- Search for YouTube Data API v3.
- Click it → Click Enable.
✅ Step 4: Configure OAuth Consent Screen
-
In left menu → APIs & Services > OAuth consent screen.
-
Choose External → Click Create.
-
Fill in:
- App name:
yt app - User support email: (your email)
- Developer contact: (your email)
- App name:
-
Click Save and Continue (you can skip scopes and test users for now).
✅ No need to publish the app for testing.
✅ Step 5: Create OAuth 2.0 Credentials
-
Go to APIs & Services > Credentials.
-
Click + Create Credentials → Choose OAuth client ID.
-
Application type: Choose Web application (or Desktop App if needed).
-
Name:
yt client -
Authorized redirect URIs: → Add the URL your app uses to handle OAuth callback (e.g.,
https://yt.vomatchka.com/api/auth/callback/googlefor NextAuth.js). -
Click Create.
✅ Step 6: Get Your Client ID & Secret
You'll now see:
- Client ID: 👉 Your
GOOGLE_CLIENT_ID - Client Secret: 👉 Your
GOOGLE_CLIENT_SECRET
✅ Save both securely!
✅ Step 7: Done!
Use these keys in the app