API Youtube
Last updated
To set up the YouTube API, follow the steps one by one.
Go to the Google Cloud Console
Sign in with your Google account
At the top, click on "Select a project"
Click on "NEW PROJECT"
Give your project a name (e.g., "CarPlay FiveM")
Click "Create"
Wait a few seconds for the project to be created
Select your new project from the dropdown at the top
IMPORTANT: If you cannot find "YouTube Data API v3", follow these steps:
Option A: Through the API Library
In the left menu (☰), click "APIs & Services"
Click "Library"
In the search bar, type: YouTube Data API v3
Click the result "YouTube Data API v3"
Click the blue "ENABLE" button
Wait a few seconds for the API to be activated
Option B: Using the Search Bar
Go to https://console.cloud.google.com
In the top search bar (🔍), type: YouTube Data API v3
Select "YouTube Data API v3" from the results
Click "ENABLE"
In the left menu, go to "APIs & Services" > "Credentials"
Click "+ CREATE CREDENTIALS" at the top
Select "API Key"
Your API key will be generated
(Recommended) Click "RESTRICT KEY" to secure it
Under "API Restrictions", select "YouTube Data API v3"
Click "Save"
Open your server.cfg file
Add the following line with your API key:
Last updated
setr youtube_api_key "YOUR_API_KEY_HERE"