Connector

Collect YouTube traffic sources in Snowflake

Load where YouTube views come from, day by day, into your own Snowflake account with a custom OWOX connector. Search, suggested videos, browse and external links land as rows, ready to read next to your own search and ad data.

YouTubeConnectedChannelChannel dailyDemographics da…Devices daily
Data MartPublishedone definition
SnowflakeChann…DayViewsDaily 09:00
Refreshed on a schedule. No exports, no copy-paste.

Get started free

Hand this to your AI

In Snowflake, where views come from should sit next to Google search and ad spend, but YouTube keeps it to itself.

Paste this into your AI assistant. It sets up a YouTube Data Mart in OWOX Data Marts that loads traffic sources daily, channel daily and the channel into your Snowflake account, refreshed on a schedule.

The prompt

load YouTube traffic sources daily into Snowflake with a daily refresh, and show me the share of views from YouTube search by week next to our Google Search Console clicks

Endpoints

YouTube Endpoints

Documentation

11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.

S00 · Why

Why read YouTube traffic sources beside Google search and ads

YouTube splits views by where they came from, but only inside YouTube. Whether search on YouTube grows with search on Google, or whether paid views crowd out organic ones, shows only when the traffic sources sit in one data warehouse with Search Console and Google Ads.

  • Read YouTube search views beside Google search clicks for the same days
  • See whether ADVERTISING views rise while suggested views fall
  • Track how much watch time comes from outside YouTube
YouTubeViews by source
SearchGoogle clicks
Ad platformsPaid views
Your data warehouseSnowflakeYouTubeSearchAdsJoined by idViewer searchesVideo watchedOne query compares search on YouTube and Google.

S01 · Step 1

Step 1: Connect YouTube and pick the fields

Create a Data Mart, choose YouTube as the data source and sign in with the Google account that manages the channel. Open an endpoint and tick only the fields you need.

  • Traffic sources daily carries views and watch time per source type and day
  • A custom connector: the Google credential and the channel ID are yours
New Data MartChoose a sourceGoogle Search…YouTubeGoogle AdsAuthorizeConnectedEndpointTraffic sources d…ChannelChannel dailyDemographics daily
Traffic sources d…5 fieldsdaytraffic_source_typeviewsestimated_minutes_watched

S02 · Step 2

Step 2: Load YouTube into Snowflake

Each endpoint becomes its own table, and refresh settings are set in the Data Mart. Run it and the first load lands as a table in a schema of the database you choose in Snowflake. The location is pre-filled from your data storage, and you can change it.

  • Traffic sources daily and Channel daily each get their own table
  • Every run is logged in Run History
DestinationSnowflakeDatabaseSchemayoutubeTabletraffic_sources_dailyRun
Run HistoryPendingRunningSuccessIncremental load
Tableyoutube.traffic_sources_daily

S03 · Step 3

Step 3: Get a business-friendly YouTube output schema

After the first run you get the output schema: every field with its type and a description. traffic_source_type keeps YouTube's own codes, and the schema lists the codes.

  • YT_SEARCH, RELATED_VIDEO, SUBSCRIBER and SHORTS are among the codes
  • EXT_URL counts views that began on another site
youtube.traffic_sources_dailyOutput schemaFieldDescriptiondayDay. Part of the key.traffic_source_typeYouTube's traffic source type…viewsViews from that source that day.estimated_minutes_watchedWatch time from that source…

S04 · Step 4

Step 4: Keep the YouTube tables linked

Traffic sources daily and Channel daily stay separate tables, both carrying channel_id and day. Together they become the reach part of one YouTube data model.

  • A source's share is its views over the channel's views that day
  • Add Search Console and ad spend to the same model on the date
Channelchannel_idtitle
Traffic sources d…channel_idtraffic_source_t…views
Channel dailychannel_iddayviews

S05 · Step 5

Step 5: Schedule the YouTube refresh and backfill history

Set it once. A daily scheduled refresh adds new days, and a manual backfill loads earlier periods for comparison.

  • Daily runs with no pipeline to maintain
  • Backfill a full year to see seasonal search
ScheduleRun on a scheduleDaily 09:00
BackfillRun backfill
Run HistoryDaily scheduleManual backfillDaily schedule

S06 · Step 6

Step 6: Reuse the same YouTube table everywhere

One table feeds your data model, spreadsheets, dashboards, AI assistants and scheduled insights in Slack or email.

  • Define search share once
  • Every report reads the same table
YouTubeData MartPublished
Your data model
Google Sheets
Data Studio dashboards
Claude, ChatGPT
Slack, email

Recent updates

Why OWOX

Why OWOX for YouTube in Snowflake

The traffic source report in Studio is a chart you look at. OWOX keeps it in Snowflake as daily rows, joined to what else you know about search and spend.

  • You own the data. It lands in your own data warehouse, in tables you control.
  • Every source, every day. One row per source type and day, so a shift in discovery is visible the week it starts.
  • Two APIs, one model. The channel from the YouTube Data API and the daily series from YouTube Analytics join on channel_id.
  • New sources arrive as rows. When YouTube adds a traffic source type, the column already holds it.

Book a callGet started free

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers