Connecting YouTube API to n8n: Complete Step-by-Step Guide

Want n8n to automatically upload videos, update titles, or manage playlists on your behalf? The foundation for all of this starts with connecting YouTube Data API v3 to n8n through Google Cloud Console. This initial setup determines whether every YouTube node in your workflow will actually function.
The process resembles connecting Google Drive or Google Sheets to n8n—they all rely on Google's OAuth 2.0 authentication mechanism. What's interesting here is that YouTube adds several additional steps around data scope declarations that catch newcomers off guard. We'll walk through the exact sequence as it happens in practice.
Connecting YouTube API to n8n: Step-by-Step Instructions
Step 1: Select the Right Project in Google Cloud
Open Google Cloud Console and click the project name in the upper left corner to open the project selection panel. Choose the project where you want to set up YouTube integration—perhaps an existing project you've used for other n8n connections. No project yet? Create one here.

Step 2: Search for and Open YouTube Data API v3
Type "youtube" into the search box at the top of the page. The system displays results—select YouTube Data API v3 from the Top results section. This is the API that grants access to YouTube data including videos, playlists, and channels.

Step 3: Enable the API
On the YouTube Data API v3 details page, click the Enable button to activate this API for your selected project. Skip this step and n8n won't be able to execute any YouTube operations, regardless of how complete your authentication credentials are.

Step 4: Begin Creating Credentials
Once the API is enabled, the details page displays a notification prompting you to create credentials so your application can call this API. Click Create credentials to proceed.

Step 5: Choose API Type and Data Access Scope
On the Credential Type screen, the "Which API are you using" field is already pre-filled with YouTube Data API v3. Under "What data will you be accessing," select User data. This tells Google that n8n needs to act on your behalf with your personal YouTube account data—uploading videos to your channel, not just reading public information. This choice triggers the creation of an OAuth client instead of a simple API key. Click Next to continue.

Steps 6 & 7: Review the Scopes Declaration Section
The Scopes step lets you pre-declare which permission ranges your application will request from users. For first-time setup, you can skip this section—both "Your non-sensitive scopes" and "Your restricted scopes" will be empty. The specific permission scopes get requested later during authentication within n8n.

Scroll to the bottom of the Scopes section and click Save and continue to confirm and move on to creating the OAuth Client ID.

Step 8: View Application Type Options
The next screen shows a dropdown menu listing application types for OAuth client creation: Web application, Android, Chrome Extension, iOS, TVs and Limited Input devices, and Desktop app. Since n8n operates as a web application that handles browser-based requests, select Web application.

Step 9: Choose Application Type and Name Your OAuth Client
Under Application type, select Web application as determined in the previous step. Then enter a name for your client in the Name field—something like "Youtube-data-QTM-n8n" helps distinguish it if you later create additional clients for other Google services.

Step 10: Prepare to Enter Redirect URI Addresses
Scroll down to the Authorized redirect URIs section. This is where you specify the address Google will send users back to after successful authentication. The field might show a sample value initially—you'll need to replace it with the actual address from n8n in the next steps, so don't save just yet.

Step 11: Confirm Web Application Type Again
Double-check the application type dropdown one more time to ensure Web application is correctly selected. This choice is critical for the redirect URI configuration to work properly.
Step 12: Create YouTube Credentials in n8n
Switch to the n8n interface. From the left menu, navigate to Overview or Personal, select the Credentials tab, then click Create credential in the upper right corner.

Step 13: Search for and Select YouTube OAuth2 API Credential Type
In the Add new credential dialog, search for and select YouTube OAuth2 API from the list of available services. Click Continue to open the detailed setup screen.

Step 14: Return to Google Cloud to Complete and Download Credentials
Go back to the Google Cloud tab to finish setting up your OAuth Client ID. On the Your Credentials screen, you can click the copy icon next to Client ID to grab it instantly, or click Download to save all credentials as a JSON file. Click Done to close this window.

Step 15: Review Your New OAuth Client in the Clients List
Navigate to Clients in Google Auth Platform and you'll see your newly created OAuth Client listed in the OAuth 2.0 Client IDs table, showing its name, creation date, and application type. Click on the client name to reopen the details page if you need to retrieve information again.

Step 16: Copy Your Client ID
On the Client ID for Web application details page, the Additional information section on the right displays your Client ID. Click it to copy the value—you'll paste this into n8n in the final steps.

Step 17: Enter the Real Redirect URL and Copy Client Secret
Now you need to return to n8n and grab the exact OAuth Redirect URL shown in the YouTube credential setup screen from Step 13. Paste that address into the Authorized redirect URIs field in Google Cloud, then click Save.
Just below, the Client secrets section displays your generated secret code. Click the copy icon or download option to save this value—it only appears in full at certain moments.

Step 18: Add Your Account to the Test Users List
Since your application is in Testing mode, only accounts in the test users list can authenticate successfully. Navigate to Audience in Google Auth Platform, find the Test users section, click Add users, enter your Google email address (the one you'll use to log in), and click Save.

Step 19: Complete the Connection in n8n
Back in the n8n YouTube account setup screen, paste the Client ID you copied in Step 16 into the Client ID field, and paste the Client Secret from Step 17 into the Client Secret field.

Under Allowed HTTP Request Domains, leave it set to All unless you have specific restrictions. Finally, click Sign in with Google, select the account you added to the test users list, and grant permissions when prompted. If everything is correct, n8n confirms successful YouTube connection.

What Can You Do With YouTube API Connected to n8n?
Once the connection is set up, the YouTube node in n8n can perform numerous actions within automated workflows—no manual work in YouTube Studio required. You can automatically upload videos with pre-configured titles, descriptions, and visibility settings, update information on existing videos, manage playlists, or extract data about videos and channels for reporting.
The real advantage is chaining YouTube with other data sources in a single workflow. For example, one workflow could automatically fetch videos from Google Drive or Dropbox, validate the format, and publish directly to YouTube without human intervention in between. For channels posting content daily or weekly, this automation saves serious time on repetitive tasks.
Using OAuth 2.0 authentication as outlined above also protects your YouTube account. n8n receives only limited permissions within the declared scopes, and you can revoke access anytime from your Google account settings without affecting other services.
Bottom Line
Connecting YouTube API to n8n involves multiple steps split between Google Cloud Console and n8n—enabling the API, declaring data types, generating an OAuth Client ID, and exchanging redirect URLs and credentials. It's a one-time setup per project. Once complete, you have a stable connection ready for any YouTube automation workflow: uploading videos, updating metadata, or managing your entire playlist library.
Description: Learn how to integrate YouTube Data API v3 with n8n using Google Cloud Console and OAuth 2.0 authentication.
Related Articles
- Turn Long Documents Into Stunning Presentations: NotebookLM + Canva Guide
- Hugging Face: The Python Ecosystem That Revolutionized AI Development
- Master ElevenLabs v3: Creating Emotionally Expressive AI Voices
- How to Turn Documents into Summary Videos with Google Vids
- What is Google Sheets Canvas? Turn Your Spreadsheet into an Interactive Dashboard

































