
YouTube (Google)
This source is currently in alpha. The interface and available tables may change.
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect YouTube (Google) to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Import public data for one YouTube channel. Enable YouTube Data API v3 in your Google Cloud project. Private data requires OAuth and is not supported. Each sync uses your project's API quota.
Configuration
| Option | Description |
|---|---|
Google API keyType: password Required: True | |
YouTube channel IDType: text Required: True | Enter the channel ID that starts with UC. Do not enter a handle or URL. |
Linking YouTube (Google) to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select YouTube (Google)
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
channels | Public metadata, statistics, branding, and related playlists for the selected YouTube channel. | Full refresh | — | id |
videos | Public video details and current statistics for videos in the channel uploads playlist. | Full refresh | — | id |
playlists | Public playlists owned by the selected channel. This list excludes the system uploads playlist. | Full refresh | — | id |
playlist_items | Items in the channel public playlists, including video references and positions. | Full refresh | — | playlist_id, id |
comment_threads | Public comment threads for the channel and its videos. Reply bodies are not included. | Full refresh | — | id |





