How To Generate The YouTube Credentials
Learn how to generate YouTube API credentials using Google Cloud Console.
Step 1: Create a Google Cloud Project
- Visit: https://console.cloud.google.com/
- Click the project dropdown (top left) → “New Project”
- Name your project (e.g., YouTube Integration) and click “Create”
Step 2: Enable the YouTube Data API v3
- After your project is created, go to: https://console.cloud.google.com/apis/library/youtube.googleapis.com
- Click “Enable”
- You also need to enable the YouTube Data API V3 version and the YouTube Analytics API.
Step 3: Configure OAuth Consent Screen
- Go to: OAuth Consent Screen
- Choose “External” if your app will be used by others outside your organization.
- Fill in:
- App name
- User support email
- Developer contact info
- Save and continue (you can skip scopes for now or add later)
- Under “Test users”, add the Gmail account(s) you’ll use to test.
Step 4: Create OAuth 2.0 Client Credentials
- Go to: Credentials Page
- Click “Create Credentials” → OAuth client ID
- Choose “Web application”
- Set a name (e.g., Laravel YouTube Integration)
- Under Authorized redirect URIs, add your redirect URL, e.g.:
- For local development:
http://localhost:8000/google/callback
- For production:
https://yourdomain.com/google/callback
- For local development:
- Click Create
Step 5: Copy Your Credentials
- After creation, you’ll get:
- Client ID
- Client Secret
- Save these in your Laravel .env file or settings table:
GOOGLE_CLIENT_ID=your_client_idGOOGLE_CLIENT_SECRET=your_client_secretGOOGLE_REDIRECT_URI=http://localhost:8000/google/callback
Categories
Related articles
- Side Menu Builder Integration in Dash SaaS
- Flexible Days Integration in BookingGo SaaS
- Products PDF – eCommerceGo Add-On
- User Manual – TicketGo
- ZitaSMS Integration in Dash SaaS
- Import Export Module Integration in eCommerceGo SaaS
- Branding & Personalization – White Label Setting
- Quick Checkout – eCommerceGo Add-On
- Sign-In With Facebook – eCommerceGo Add-On
- User Manual – StoreGo SaaS
- Locker & Safe Deposit Integration in Dash SaaS
- Slack Integration in TicketGo
Take your business to the next level with great website!
Feel Free To Reach Out to Discuss Your Next Web Development Project.
