a

How to Connect YouTube Analytics to Knowi and Build a Channel Dashboard

Share on facebook
Share on linkedin
Share on twitter
Share on email

Knowi connects natively to YouTube Analytics through its YouTube integration, available under Cloud Services. After authenticating with your Google account via OAuth, you can query 19 pre-built endpoints covering channel analytics, video performance, audience demographics, traffic sources, revenue, and more, then build live dashboards directly in Knowi.

Quick Summary (TL;DR)

  • Knowi connects to YouTube via Google OAuth 2.0 with read-only access. No API keys to manage; token stays active while the connection is live.
  • 19 endpoints are available including Channel Analytics, Video Details, Demographics, Traffic Sources, Geography, Device Types, Audience Retention, Revenue, and Custom Analytics Query.
  • Channel Analytics supports configurable date ranges, dimensions (day, month, video, country), and default metrics including views, estimatedMinutesWatched, averageViewDuration, likes, comments, shares, subscribersGained, and subscribersLost.
  • Revenue data is available for YouTube Partner Program channels. Non-monetized channels return empty results for the Revenue endpoint.
  • Analytics data has a 2-3 day processing delay. Historical data is available from June 2008.
  • Knowi’s AI dashboard builder generates visualizations from your YouTube data using plain language questions of your dataset.

Table of Contents

How to Connect YouTube to Knowi

The YouTube connector is available natively in Knowi under Cloud Services. Authentication uses Google OAuth 2.0 so no API key is required.

  1. Go to Queries in Knowi and select New Data Source.
  2. Find YouTube under Cloud Services.
  3. Click Authenticate. A popup window opens where you select which Google account to connect.
  4. Once authorized, click Save. Your YouTube datasource is ready to query.

The OAuth refresh token does not expire while the connection remains active. You can revoke access at any time at myaccount.google.com/permissions.

What Data Can You Pull from YouTube?

The Query Builder includes 19 pre-built YouTube endpoints. All analytics endpoints require an active YouTube channel. The Revenue endpoint additionally requires YouTube Partner Program enrollment.

EndpointWhat It ReturnsKey Parameters
My ChannelchannelId, title, description, publishedAt, totalViews, subscribers, videoCount, uploadsPlaylistIdNone required
Channel VideosvideoId, title, description, publishedAt, thumbnailUrl, privacyStatusUploads Playlist ID (required), Results Per Page (1-50)
Video DetailsvideoId, title, publishedAt, views, likes, comments, duration, privacyStatusVideo ID(s), comma-separated, up to 50
Channel AnalyticsTime-series data: views, estimatedMinutesWatched, averageViewDuration, likes, comments, shares, subscribersGained, subscribersLostStart Date, End Date, Metrics, Dimensions (day/month/video/country)
Video AnalyticsPer-video performance over a date range. Same metrics as Channel Analytics.Video ID, Start Date, End Date, Dimensions (default: day)
DemographicsageGroup, gender, viewerPercentageStart Date, End Date
Traffic SourcesViews and watch time by source (YouTube Search, External URLs, Related Videos, etc.)Start Date, End Date
Traffic Source DetailDrill-down by source type: search terms, external URLs, related videosSource Type (9 options), Start Date, End Date, Max Results (up to 200)
GeographyViews and watch time by countryStart Date, End Date
US States/ProvincesViews and watch time by US state (ISO 3166-2 codes)Start Date, End Date
Device TypesViews and watch time by device type and operating systemStart Date, End Date
Playback LocationsViews and watch time by location (watch page, embedded player, search results)Start Date, End Date
Audience RetentionelapsedVideoTimeRatio, audienceWatchRatio, relativeRetentionPerformanceVideo ID (required), Start Date (default: last 90 days), End Date
Content TypeAnalytics by content type: SHORTS, VIDEO_ON_DEMAND, LIVE_STREAMStart Date, End Date
Sharing ServicesShare counts by platform (Twitter, Facebook, email, etc.)Start Date, End Date
Playliststitle, videoCount, privacyStatus for all channel playlistsResults Per Page (default 25)
RevenueestimatedRevenue, estimatedAdRevenue, grossRevenue, cpm, adImpressions, monetizedPlaybacksStart Date, End Date, Dimensions (default: day). Requires YouTube Partner Program.
Custom Analytics QueryFull control over the YouTube Analytics APIStart Date, End Date, Metrics (required), optional Dimensions/Filters/Sort
Custom Data API QueryAccess any YouTube Data API v3 resourceResource name (channels, videos, search, playlists, subscriptions, commentThreads) + Query Parameters

Technical Details

Date Range and Data Availability

  • Analytics data has a 2-3 day processing delay. Data for the current or previous 1-2 days may be incomplete.
  • Historical data is available from June 2008 onward.
  • Knowi date tokens work with the YYYY-MM-DD format required by YouTube Analytics: {$c9_today:yyyy-MM-dd}{$c9_today-30d:yyyy-MM-dd}.

Data Format and Cloud9QL

  • Analytics API responses use a columnHeaders[] and rows[][] structure. Use select expand(rows) in Cloud9QL to flatten into tabular rows, then reference columns positionally: rows[0]rows[1], etc.
  • Data API responses use an items[] array. Use select expand(items) to flatten.

How to Build a YouTube Dashboard in Knowi

  • Select an endpoint from the Query Builder. Channel Analytics is a common starting point for overall channel performance.
  • Set your date range. The default is 30 days; you can extend to any range back to June 2008.
  • Choose your metrics and dimensions. Default metrics are pre-filled; add or remove from the comma-separated list.
  • Preview and run your query, then use the AI dashboard builder to generate visualizations with plain language questions.
  • Example dashboard from the integration video: monthly views and average minutes watched per month.

Watch the Video Walkthrough

Frequently Asked Questions

How does Knowi connect to YouTube?

Knowi uses Google OAuth 2.0. Click Authenticate in the datasource setup, select your Google account, and Knowi receives read-only access. The refresh token stays active while the connection is live. You can revoke access at myaccount.google.com/permissions.

How many YouTube endpoints does Knowi support?

19 endpoints: My Channel, Channel Videos, Video Details, Channel Analytics, Video Analytics, Demographics, Traffic Sources, Traffic Source Detail, Geography, US States/Provinces, Device Types, Playback Locations, Audience Retention, Content Type, Sharing Services, Playlists, Revenue, Custom Analytics Query, and Custom Data API Query.

Why is my YouTube analytics data showing incomplete numbers for recent dates?

YouTube Analytics has a 2-3 day processing delay. Data for the most recent 1-2 days may be incomplete or change as YouTube finalizes it. Use a start date that is at least 3 days in the past for reliable data.

Can I pull YouTube revenue data into Knowi?

Yes, if your channel is enrolled in the YouTube Partner Program. The Revenue endpoint returns estimatedRevenue, estimatedAdRevenue, grossRevenue, CPM, adImpressions, and monetizedPlaybacks. Non-monetized channels return empty results.

Can I analyze Shorts, live streams, and regular videos separately?

Yes. The Content Type endpoint breaks analytics down by SHORTS, VIDEO_ON_DEMAND, and LIVE_STREAM.

How far back can I pull YouTube data?

Historical data is available from June 2008 onward.

How do I flatten YouTube Analytics API responses in Knowi?

YouTube Analytics API responses use a columnHeaders and rows array structure. Use select expand(rows) in Cloud9QL to convert to flat tabular rows, then reference columns by position: rows[0], rows[1], etc.

Ready to connect your YouTube channel to Knowi? Read the YouTube connector documentation to get started, or schedule a demo to see it in action with your channel data.

Sanskriti Garg

Sanskriti Garg

Sanskriti Garg is the Marketing Manager at Knowi, where she leads all marketing initiatives for the company. She oversees positioning, messaging, go-to-market strategy, and campaigns that help Knowi reach businesses looking to unify, analyze, and act on their data with powerful AI analytics. Sanskriti brings over 10+ years of marketing experience, with a strong consumer-focused mindset and storytelling skills. Her expertise spans marketing, demand generation, AI, and analytics, and she’s passionate about making advanced analytics accessible and impactful for organizations of all sizes.

Want to See Knowi in Action?

Connect your databases, run cross-source joins, and ask questions in plain English. No warehouse required.

See Knowi in action
Connect your databases, query across sources, and run AI on-premises. No warehouse required.
Book a Demo