Sign in to the Google Cloud Console and create a project or select an existing project.
2.
Enable YouTube Data API :
•
Go to the API and Services menu and select Library .
•
Enter YouTube Data API v3 in the search bar and select the found API.
•
Click the use button to activate the API.
3.
Generate an API key :
•
Go to Credentials in the API and Services menu.
•
Click + Create credentials and select API Key .
•
You can copy the generated API key and use it in n8n or cURL requests.
4.
(Optional) Set up API key security :
Since generated API keys can be exploited if exposed externally, it is recommended to restrict access to specific IP addresses or websites through security settings such as IP address or domain restrictions .
Once you've completed these settings, you'll get a key that you can use to make YouTube API calls.