Prerequisites
- A Google Cloud project with the YouTube Data API v3 enabled
- An API key for your Google Cloud project
- The playlist ID you want to import
Getting Your Google API Key
- Go to the Google Cloud Console
- Create or select a project
- Navigate to APIs & Services > Library
- Search for YouTube Data API v3 and enable it
- Go to APIs & Services > Credentials
- Click Create Credentials > API key
- Copy the generated key
Finding Your Playlist ID
The playlist ID is the value oflist in a YouTube playlist URL:
PL is your playlist ID.
Setup Steps
- Navigate to Knowledge > Sources > Create
- Select YouTube Playlist as the connector type
- Enter your Google API Key
- Enter the Playlist ID
- Optionally enable Include private videos if you want to import unlisted or private videos (disabled by default)
- Save and run a manual sync
Configuration
What Gets Imported
Each video in the playlist creates one knowledge document containing:- Title: The video title
- Content: The video description with a link to the video
- External link: Direct YouTube watch URL
Troubleshooting
No videos imported
No videos imported
- Verify the playlist ID is correct and the playlist is not empty
- Check that the API key has YouTube Data API v3 enabled
- Ensure the playlist is public (or enable “Include private videos” for private playlists)
API key error
API key error
- Verify the key in the Google Cloud Console
- Check that the YouTube Data API v3 is enabled for your project
- Ensure the key has no IP or referrer restrictions that block server-side requests
Related
- Knowledge Connectors — All available connectors
- Knowledge Source Management — Managing sources
