YouTube Analytics
This connector syncs data from YouTube into your destination using Google OAuth. It supports multiple YouTube APIs to extract different kinds of data:
- YouTube Data API (v3) for metadata (for example, channels, videos, playlists).
- YouTube Reporting API for bulk downloadable reports (job-based).
- YouTube Analytics API (Query API) for analytics reports (metrics/dimensions over a date range).
API Documentation:
Source Setup Guide
Step 1
Click in the Edit Source form.
Step 2
Follow the authentication flow (OAuth) on Google/YouTube to grant Extract the required permissions.
Step 3
Confirm you can see your email and profile picture, and that the source is Connected.
The API Client uses YouTube API Services.
By authorizing this connector, you agree to:
You can revoke access on the Google Security Settings page.
Step 4 (optional): Content Owner ID (for Content Owner reports)
If you are a YouTube Content Owner (MCN / CMS account), add your Content Owner ID. This enables syncing content owner reports from the Reporting API.
To retrieve all content owner IDs associated with your admin account:
- Visit the Content Owner endpoint docs:
https://developers.google.com/youtube/partner/reference/rest/v1/contentOwners/list?apix_params=%7B%22fetchMine%22%3Atrue%7D - In the API Explorer, set
fetchMinetotrueand click Execute. - Sign in with the relevant Google admin account and accept prompts.
- The response includes content owner names and their corresponding IDs.
Connection Setup Guide
Once you connect YouTube to a destination, configure:
- Connection Pull Schedule: how frequently data is extracted.
- Backfill (Days): how much historical data is retrieved on each run.
- Destination-specific settings: e.g., dataset name / schema / warehouse options.
- Schema Migration Policy: how schema changes are handled.
Authentication
This connector uses Google OAuth 2.0. You authenticate by signing in to Google and granting access.
If you use Content Owner features, you may also provide:
- Content Owner ID (
on_behalf_of_content_owner)
Configuration fields
Source-level fields commonly used by this connector:
| Field | Required | Description |
|---|---|---|
client_id | Yes | Google OAuth client ID. |
client_secret | Yes | Google OAuth client secret. |
token | Yes | OAuth refresh token (created during the OAuth flow). |
on_behalf_of_content_owner | No | Content Owner ID used for Content Owner Reporting API reports. |
Some streams also define stream-specific configuration in connector_specific (for example, Analytics Query API reports). These are managed by the connector and typically don’t need manual editing unless instructed.
Schema ERD
Explore the interactive entity relationship diagram for Youtube.
Data Streams
The connector can expose multiple stream types (metadata, reporting, analytics). Stream availability depends on your YouTube account permissions and whether you provided a Content Owner ID.
Analytics (Query API) streams
These streams are powered by the YouTube Analytics Query API and are typically date-ranged (respecting your connection backfill window).
channel_demographicschannel_device_os_dailychannel_geography_countrychannel_geography_provincechannel_playback_location_dailychannel_time_dailychannel_traffic_source_dailyplaylist_device_osplaylist_geography_countryplaylist_playback_locationplaylist_time_dailyplaylist_traffic_sourcevideo_geography_countryvideo_time_dailyvideo_traffic_source
Notes on Analytics Query API behavior
- Analytics queries are executed over a start date / end date derived from your connection schedule and backfill.
- Some analytics reports may be scoped to:
- the authenticated user’s channel (
ids=channel==MINE), and/or - specific channels (when applicable), and/or
- filtered entities (for example, videos or playlists) depending on the report design.
- the authenticated user’s channel (
- The YouTube Analytics API enforces quotas and per-request limits; the connector may paginate and/or batch requests to stay within API constraints.
Reporting API streams (job-based)
If enabled for your account, the connector can also sync Reporting API reports (bulk downloadable reports). These are created and fetched via jobs and may require Content Owner access for content owner reports.
Metadata (YouTube Data API v3) streams
The connector can also sync metadata via the YouTube Data API (v3), such as channel/video/playlist metadata, depending on the configured catalog.
Connector Information
- Connector name: YouTube
- APIs used: YouTube Data API (v3), YouTube Analytics API, YouTube Reporting API
- Auth: OAuth 2.0 (Google)