API Youtube
To set up the YouTube API, follow the steps one by one.
1. Create a Google Cloud Project
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
2. Enable YouTube Data API v3
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 v3Click 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 v3Select "YouTube Data API v3" from the results
Click "ENABLE"
3. Create an API Key
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"
4. Configure the API Key in FiveM
Open your
server.cfgfileAdd the following line with your API key:
Last updated