Data source

YouTube data model: channel, videos and daily analytics as tables

The YouTube data model in OWOX: 11 tables for the channel, videos, playlists and the daily views, watch time, traffic sources, countries, devices, audience and revenue, with keys and joins drawn.

Get started free

Hand this to your AI

Don't start from scratch. Have your AI assistant lay the foundation with you.

Your assistant interviews you about your sources and goals; OWOX Data Marts hold the models and the SQL.

The prompt

set up a data foundation for my team: connect my data, model the business, and see the numbers everyone trusts

Available connectors from YouTube

Available connectors from YouTube

Recent updates

Endpoints

YouTube Endpoints

Documentation

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

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

Channel schema

YouTube Channel schema

15 fieldsyoutube_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

YouTube Channel fields
FieldTypeDescription
channel_idSTRINGThe channel ID (UC…). Primary key, and the join key to every other YouTube table.
titleSTRINGChannel name as shown on YouTube.
descriptionSTRINGThe channel's About text.
custom_urlSTRINGThe channel handle, e.g. @owox_bi.
published_atTIMESTAMPWhen the channel was created (UTC).
countrySTRINGCountry set in the channel settings (ISO 3166-1 alpha-2), empty when not set.
thumbnail_urlSTRINGURL of the channel avatar, 800 px.
view_countINTEGERLifetime views of all public videos, as of the run. A snapshot, not a daily number: daily views live in channel_daily.
subscriber_countINTEGERSubscribers as of the run, rounded by YouTube to three significant figures for channels above 1,000.
hidden_subscriber_countBOOLEANTrue when the channel hides its subscriber count; subscriber_count is then 0.
video_countINTEGERPublic videos on the channel as of the run.
uploads_playlist_idSTRINGThe uploads playlist (UU…); copy it into the Uploads playlist ID parameter.
keywordsSTRINGChannel keywords from Studio → Customization, space-separated, quoted when multi-word.
privacy_statusSTRINGpublic, unlisted or private.
made_for_kidsBOOLEANChannel-level made-for-kids setting.

Channel daily schema

YouTube Channel daily schema

14 fieldsTime seriesyoutube_channel_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.

YouTube Channel daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEDay in the channel's time zone as YouTube Analytics reports it. Part of the key.
viewsINTEGERViews on that day (YouTube's counted views, not impressions).
estimated_minutes_watchedINTEGERWatch time in minutes. The metric YouTube ranks by; views × average duration.
average_view_durationINTEGERAverage seconds a view lasted.
average_view_percentageFLOATAverage share of the video watched, in percent: the retention proxy.
likesINTEGERNet likes that day: likes added minus likes removed, so a day can be negative.
dislikesINTEGERDislikes added that day (visible to the owner only).
commentsINTEGERComments posted that day.
sharesINTEGERShares through the Share button that day.
subscribers_gainedINTEGERSubscribers gained from this content that day.
subscribers_lostINTEGERSubscribers lost that day.
videos_added_to_playlistsINTEGERTimes viewers added the channel's videos to playlists that day.
videos_removed_from_playlistsINTEGERTimes viewers removed them from playlists that day.

Demographics daily schema

YouTube Demographics daily schema

5 fieldsTime seriesyoutube_demographics_daily

Share of watch time per age group and gender, per day.

YouTube Demographics daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEThe day, stamped from the request window. Part of the key.
age_groupSTRINGage13-17, age18-24, age25-34, age35-44, age45-54, age55-64, age65-. Part of the key.
genderSTRINGfemale, male or user_specified. Part of the key.
viewer_percentageFLOATPercent of the day's watch time from that age group and gender; the day's rows sum to 100.

Devices daily schema

YouTube Devices daily schema

6 fieldsTime seriesyoutube_devices_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.

YouTube Devices daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEDay. Part of the key.
device_typeSTRINGDESKTOP, MOBILE, TABLET, TV, GAME_CONSOLE or UNKNOWN_PLATFORM. Part of the key.
operating_systemSTRINGANDROID, IOS, WINDOWS, MACINTOSH, LINUX, CHROMECAST, SMART_TV, PLAYSTATION, XBOX and others. Part of the key.
viewsINTEGERViews that day on that device and OS.
estimated_minutes_watchedINTEGERWatch time that day, minutes.

Geography daily schema

YouTube Geography daily schema

13 fieldsTime seriesyoutube_geography_daily

Views, watch time, average view duration and percentage, likes, comments, shares and subscriber changes per country and day.

YouTube Geography daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEThe day, stamped from the request window. Part of the key.
countrySTRINGViewer country, ISO 3166-1 alpha-2; ZZ when unknown. Part of the key.
viewsINTEGERViews on that day (YouTube's counted views, not impressions).
estimated_minutes_watchedINTEGERWatch time in minutes. The metric YouTube ranks by; views × average duration.
average_view_durationINTEGERAverage seconds a view lasted.
average_view_percentageFLOATAverage share of the video watched, in percent: the retention proxy.
likesINTEGERNet likes that day: likes added minus likes removed, so a day can be negative.
dislikesINTEGERDislikes added that day (visible to the owner only).
commentsINTEGERComments posted that day.
sharesINTEGERShares through the Share button that day.
subscribers_gainedINTEGERSubscribers gained from this content that day.
subscribers_lostINTEGERSubscribers lost that day.

Playlist items schema

YouTube Playlist items schema

9 fieldsyoutube_playlist_items

Which video sits in which playlist, at which position: the many-to-many bridge between playlists and videos.

YouTube Playlist items fields
FieldTypeDescription
playlist_item_idSTRINGPlacement id. Primary key.
playlist_idSTRINGThe playlist. Joins youtube_playlists.
video_idSTRINGThe video. Joins youtube_videos and video_daily.
positionINTEGERZero-based position in the playlist.
added_atTIMESTAMPWhen the video was added to the playlist (UTC).
video_published_atTIMESTAMPWhen the video itself was published (UTC).
titleSTRINGVideo title as of the run.
video_owner_channel_idSTRINGOwner of the video; differs from channel_id when a playlist holds other channels' videos.
privacy_statusSTRINGPrivacy of the placement.

Playlists schema

YouTube Playlists schema

8 fieldsyoutube_playlists

The channel's playlists (series, courses, product lines), with item counts and privacy.

YouTube Playlists fields
FieldTypeDescription
playlist_idSTRINGPlaylist ID (PL…). Primary key.
channel_idSTRINGOwning channel. Joins youtube_channel.
titleSTRINGPlaylist title.
descriptionSTRINGPlaylist description.
published_atTIMESTAMPWhen the playlist was created (UTC).
thumbnail_urlSTRINGThumbnail of the playlist's cover video.
item_countINTEGERNumber of videos in the playlist as of the run.
privacy_statusSTRINGpublic, unlisted or private.

Revenue daily schema

YouTube Revenue daily schema

10 fieldsTime seriesyoutube_revenue_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.

YouTube Revenue daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEDay. Part of the key.
estimated_revenueFLOATTotal estimated net revenue from ads and YouTube Premium, USD.
estimated_ad_revenueFLOATEstimated net revenue from AdSense and DoubleClick ads, USD.
estimated_red_partner_revenueFLOATEstimated revenue from YouTube Premium subscribers' watch time, USD.
gross_revenueFLOATEstimated gross revenue from Google-sold ads before YouTube's share, USD.
cpmFLOATGross revenue per 1,000 ad impressions, USD.
playback_based_cpmFLOATGross revenue per 1,000 monetized playbacks, USD.
ad_impressionsINTEGERVerified ad impressions served.
monetized_playbacksINTEGERPlaybacks where at least one ad impression was served.

Traffic sources daily schema

YouTube Traffic sources daily schema

5 fieldsTime seriesyoutube_traffic_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

YouTube Traffic sources daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEDay. Part of the key.
traffic_source_typeSTRINGYouTube's traffic source type: YT_SEARCH, RELATED_VIDEO, SUBSCRIBER (browse: home and subscriptions), EXT_URL, PLAYLIST, YT_CHANNEL, NOTIFICATION, SHORTS, ADVERTISING, NO_LINK_OTHER, END_SCREEN, ANNOTATION, YT_OTHER_PAGE, PROMOTED, CAMPAIGN_CARD, PLAYLIST_PAGE, HASHTAGS, SOUND_PAGE, LIVE_REDIRECT, VIDEO_REMIXES, PRODUCT_PAGE. Part of the key.
viewsINTEGERViews from that source that day.
estimated_minutes_watchedINTEGERWatch time from that source that day, minutes.

Video daily schema

YouTube Video daily schema

13 fieldsTime seriesyoutube_video_daily

Per video and day: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost.

YouTube Video daily fields
FieldTypeDescription
channel_idSTRINGThe channel, stamped from the Channel ID parameter. Part of the key.
dayDATEThe day, stamped from the request window. Part of the key.
video_idSTRINGThe video. Part of the key; joins youtube_videos.
viewsINTEGERViews on that day (YouTube's counted views, not impressions).
estimated_minutes_watchedINTEGERWatch time in minutes. The metric YouTube ranks by; views × average duration.
average_view_durationINTEGERAverage seconds a view lasted.
average_view_percentageFLOATAverage share of the video watched, in percent: the retention proxy.
likesINTEGERNet likes that day: likes added minus likes removed, so a day can be negative.
dislikesINTEGERDislikes added that day (visible to the owner only).
commentsINTEGERComments posted that day.
sharesINTEGERShares through the Share button that day.
subscribers_gainedINTEGERSubscribers gained from this content that day.
subscribers_lostINTEGERSubscribers lost that day.

Videos schema

YouTube Videos schema

25 fieldsyoutube_videos

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

YouTube Videos fields
FieldTypeDescription
video_idSTRINGThe 11-character video ID (youtube.com/watch?v=…). Primary key; the join key to video_daily and to the video id you put in UTM content or landing pages.
channel_idSTRINGThe channel that owns the video. Joins youtube_channel.
titleSTRINGVideo title as of the run.
descriptionSTRINGFull video description, including the links in it.
published_atTIMESTAMPWhen the video was published (UTC). Age of a video = run date minus this.
tagsJSONTags set in Studio, as a JSON array string.
category_idSTRINGYouTube category id (28 = Science & Technology, 27 = Education, 22 = People & Blogs).
default_languageSTRINGLanguage of the title and description (BCP-47), when set.
default_audio_languageSTRINGLanguage of the audio track, when set.
live_broadcast_contentSTRINGnone for uploads, live or upcoming for streams.
thumbnail_urlSTRINGURL of the 480×360 thumbnail.
durationSTRINGLength as an ISO 8601 duration (PT12M34S). Under PT1M is usually a Short; parse in SQL with REGEXP_EXTRACT.
definitionSTRINGhd or sd.
captionBOOLEANTrue when the video has captions.
licensed_contentBOOLEANTrue when the video is claimed by a content partner.
privacy_statusSTRINGpublic, unlisted or private.
upload_statusSTRINGprocessed, uploaded, failed, rejected or deleted.
licenseSTRINGyoutube (standard) or creativeCommon.
embeddableBOOLEANWhether the video can be embedded on other sites.
made_for_kidsBOOLEANMade-for-kids flag; such videos get no personalised ads and no comments.
view_countINTEGERLifetime views as of the run.
like_countINTEGERLifetime likes as of the run (empty when the creator hides it).
comment_countINTEGERLifetime comments as of the run (empty when comments are off).
favorite_countINTEGERAlways 0 since YouTube retired favourites; kept for schema stability.
topic_categoriesJSONWikipedia topic URLs YouTube assigned to the video, as a JSON array string.

What users are saying

Not testimonials. Comment threads.

Real things real customers said — each quote pinned to a specific claim, straight from the quotes database.

A3re: trusting AI
Nodari RizunNodari RizunFounder & CEO, Pürblack®
“AI, by the nature of the models, will hallucinate. And because of that, you need something which will create guardrails to ensure that there are no hallucinations, that you can trust your data.”
C9re: one source of truth
Mark SimmonsMark SimmonsCMO, Pürblack®
“We had six or seven different channels and no single source of truth — it was almost impossible, a lot of guesswork.”
E7re: getting time back
Nodari RizunNodari RizunFounder & CEO, Pürblack®
“We regained time. And time is the one resource that never comes back.”

Turn your YouTube Data Model: Channel, Videos and the Daily Analytics Series data into business decisions

Get started free