To set up a Google Cloud Platform (GCP) project and enable the YouTube Data API, follow these steps:
-
Sign in to GCP:
- Visit Google Cloud Console.
- Sign in with your Google account.
-
Create a New Project:
- In the top menu, click the Project drop-down, then select New Project.
- Enter your project name (e.g., "YouTube API Project").
- Select your organization and location (if applicable).
- Click Create.
-
Go to the YouTube Data API:
- Visit YouTube Data API v3.
-
Enable the API:
- Click Enable to activate the YouTube Data API for your project.
-
Navigate to API & Services:
- In the left sidebar, click APIs & Services > Credentials.
-
Create Credentials:
- Click + Create Credentials and select API Key.
- Your API key will be generated and displayed. Copy this key for later use.
- Download Credentials:
- While in the Credentials tab, find your API key, click on it, and then click Download JSON.
- Save this file securely, as it contains your credentials.