YouTube (Google)

YouTube (Google)

Alpha release

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.

Learn more
PostHog Wizard hedgehog

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

OptionDescription
Google API key
Type: password
Required: True
YouTube channel ID
Type: text
Required: True

Enter the channel ID that starts with UC. Do not enter a handle or URL.

Linking YouTube (Google) to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select YouTube (Google)
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary 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