Connector

Collect YouTube audience by country in Databricks

Load daily views, watch time and subscribers by viewer country into your own Databricks workspace with a custom OWOX connector. Each market YouTube reports becomes a row per day, ready for the models your data team already runs.

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

Get started free

Hand this to your AI

In Databricks, each market's YouTube audience should sit next to its orders and ad spend, but YouTube shows only top countries for a period.

Paste this into your AI assistant. It sets up a YouTube Data Mart in OWOX Data Marts that loads geography daily and the channel into your Databricks workspace, refreshed on a schedule.

The prompt

load YouTube geography daily into Databricks with a daily refresh, and show me watch time by country by month, ready to join to our orders by country

Endpoints

YouTube Endpoints

Documentation

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

S00 · Why

Why bring YouTube audience by country into your analytics platform

YouTube knows which countries watch. Which of them buy, and where it is worth localizing or advertising, is in sales and ad data. Weighing markets needs the country series in the same data warehouse as orders and spend.

  • Rank markets by watch time, not only by views
  • Set orders by country beside the channel's audience there
  • Feed market forecasts from the same tables
YouTubeViews by country
OrdersSales by country
ModelsForecasts
Your data warehouseDatabricksYouTubeOrdersModelsJoined by idVideo watchedOrder placedOne query sets audience beside sales per market.

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.

  • Geography daily carries views, watch time, retention and subscribers per country and day
  • A custom connector: the Google credential and the channel ID are yours
New Data MartChoose a sourceGoogle AdsYouTubeShopifyAuthorizeConnectedEndpointGeography dailyChannelChannel dailyDemographics daily
Geography daily13 fieldsdaycountryviewsestimated_minutes_watchedaverage_view_percentagesubscribers_gained

S02 · Step 2

Step 2: Load YouTube into Databricks

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 main catalog in Databricks. The location is pre-filled from your data storage, and you can change it.

  • Geography daily lands in its own table in the Databricks catalog
  • Every run is logged in Run History
DestinationDatabricksCatalogmainSchemayoutubeTablegeography_dailyRun
Run HistoryPendingRunningSuccessIncremental load
Tablemain.youtube.geography_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. country is an ISO code, ZZ when YouTube does not know it.

  • YouTube withholds rows for countries with too few viewers
  • likes counts net likes, so a day can dip below zero
main.youtube.geography_dailyOutput schemaFieldDescriptiondayThe day, stamped from the…countryViewer country, ISO 3166-1…viewsViews on that day (YouTube's…estimated_minutes_watchedWatch time in minutes. The…average_view_percentageAverage share of the video…subscribers_gainedSubscribers gained from this…

S04 · Step 4

Step 4: Keep the YouTube tables linked

The channel, Geography daily and Demographics daily stay separate tables, joined on channel_id and day. Together they become the audience part of one YouTube data model.

  • Geography daily joins orders on country and day
  • Read the age and gender mix beside the countries, day by day; YouTube does not split one by the other
Channelchannel_idtitle
Geography dailychannel_idcountryviews
Demographics dailychannel_idage_groupviewer_percentage

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 modeling.

  • Daily runs with no pipeline to maintain
  • Backfill the periods you want to model
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 a market's watch time 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 Databricks

Studio shows the top countries for a period you pick. OWOX loads every country YouTube reports, every day, into your own Databricks workspace beside everything else you model.

  • You own the data. It lands in your own data warehouse, in tables you control.
  • Each market, each day. One row per reported country and day, so a market that starts growing shows early.
  • Notebook-ready. Tables in Databricks are ready for the models your data team already runs.
  • One place to fix. When the YouTube Analytics API changes, you publish a new connector version that keeps the field names.

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