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.
SnowflakeChann…DayViewsDaily 09:00In 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
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /connectors/youtube-connector-to-snowflake.md. The task: 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. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
YouTube Endpoints
11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.
Channel
The channel itself, one row, refreshed on every run: title, description, country, creation date, the lifetime view, subscriber and video counts YouTube shows on the channel page, and the uploads playl
15 fieldsChannel daily
One row per day for the whole channel: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost, playlist adds.
14 fieldsTime seriesDemographics daily
Share of watch time per age group and gender, per day.
5 fieldsTime seriesDevices daily
Views and watch time per day, device type and operating system: desktop, mobile, tablet, TV, game console; Android, iOS, Windows, Macintosh, and so on.
6 fieldsTime seriesGeography daily
Views, watch time, average view duration and percentage, likes, comments, shares and subscriber changes per country and day.
13 fieldsTime seriesPlaylist items
Which video sits in which playlist, at which position: the many-to-many bridge between playlists and videos.
9 fieldsPlaylists
The channel's playlists (series, courses, product lines), with item counts and privacy.
8 fieldsRevenue daily
Estimated revenue, ad revenue, YouTube Premium revenue, gross revenue, CPM, playback-based CPM, ad impressions and monetized playbacks per day, for channels in the YouTube Partner Program.
10 fieldsTime seriesTraffic sources daily
Views and watch time per day and traffic source type: YouTube search, suggested videos, browse features (home, subscriptions), external (websites and apps, including your own site and newsletters), pl
5 fieldsTime seriesVideo daily
Per video and day: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost.
13 fieldsTime seriesVideos
Every public upload with its metadata and lifetime counters as of the run: title, description, tags, category, duration, publish time, privacy, and the view, like and comment counts the watch page sho
25 fields
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 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
Your data warehouseYouTubeSearchAdsJoined by idViewer searchesVideo watchedOne query compares search on YouTube and Google.Step 1: Connect YouTube and pick the fields
Create a Data Mart, choose YouTube as the 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
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 storage, and you can change it.
- Traffic sources daily and Channel daily each get their own table
- Every run is logged in Run History
DestinationDatabaseSchemayoutubeTabletraffic_sources_dailyRun
Tableyoutube.traffic_sources_dailyStep 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…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 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
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
Step 6: Reuse the same YouTube table everywhere
One table feeds your model, , , assistants and scheduled insights in Slack or email.
- Define search share once
- Every report reads the same table
- 0.45.0Know what a backfill loads when a connector has no date fields
- 0.44.0Connector Data Marts set up through MCP no longer fail their first run because of the table path
- 0.44.0Backfill a catalog for any period in one run, and follow a long backfill as parts of one operation
- 0.41.0Rotating a warehouse key is one change: Storages share reusable Credentials
- 0.41.0Shared SQL logic stays in one place: build a Data Mart on top of another
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.
The Data Partner You Can Trust
users
166K Source: Internal OWOX data as of 2026-11-15
Executives and data analysts across 20+ industries
Customers
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.