🧬 Module 3: Connecting Google APIs in n8n
Learn how to connect n8n to your Google account using OAuth2 and set up access to key services (Sheets, Gmail, Drive, Calendar, BigQuery, YouTube) for future automation workflows.
Learn how to connect n8n to your Google account using OAuth2 and set up access to key services (Sheets, Gmail, Drive, Calendar, BigQuery, YouTube) for future automation workflows.
A secure way to allow apps like n8n to access your Google data.
Instead of entering your password, you allow access via “scopes”.
Create new project
Go to API & Services → OAuth Consent Screen
Set up External
Add Test Users
Enable APIs:
Google Sheets API
Gmail API
Google Drive API
Calendar API
BigQuery API
YouTube Data API v3
Go to Credentials → Set OAuth Screen → Create Credentials → OAuth Client ID
Application type: Web application
Add redirect URI from n8n (e.g., http://localhost:5678/rest/oauth2-credential/callback)
Copy Client ID and Client Secret
Got to Audience and add your email as User
Got to Data Access and Add Scopes
https://www.googleapis.com/auth/spreadsheets
https://mail.google.com/
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/youtube
In n8n, go to Credentials → Google
Choose OAuth2 API
Paste Client ID and Secret
Click “Connect” and log in to your Google Account