How to Get YouTube API Keys

You need:

  • GOOGLE_CLIENT_ID
  • GOOGLE_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)

  1. Click the project dropdown at the top.
  2. Click New Project.
  3. Name it (e.g., yt-youtube-app) → Click Create.

✅ Step 3: Enable YouTube Data API v3

  1. In the left menu → Go to APIs & Services > Library.
  2. Search for YouTube Data API v3.
  3. Click it → Click Enable.

✅ Step 4: Configure OAuth Consent Screen

  1. In left menu → APIs & Services > OAuth consent screen.

  2. Choose External → Click Create.

  3. Fill in:

    • App name: yt app
    • User support email: (your email)
    • Developer contact: (your email)
  4. 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

  1. Go to APIs & Services > Credentials.

  2. Click + Create Credentials → Choose OAuth client ID.

  3. Application type: Choose Web application (or Desktop App if needed).

  4. Name: yt client

  5. Authorized redirect URIs: → Add the URL your app uses to handle OAuth callback (e.g., https://yt.vomatchka.com/api/auth/callback/google for NextAuth.js).

  6. 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