Skip to main content

YouTube Integration

Connect your YouTube channel to Iverton AI to track video performance, monitor channel growth, and access detailed analytics for your video content strategy.

Overview

The YouTube integration uses OAuth 2.0 via Google to securely connect your channel. Once connected, you can:

  • View channel and video analytics
  • Track subscriber growth and engagement
  • Monitor video performance over time
  • Access real-time statistics
  • Integrate video data with marketing reports

Prerequisites

Before connecting, ensure you have:

  • A Google account linked to the YouTube channel
  • Owner or Manager access to the channel
  • The channel must be in good standing (not suspended)
Brand Accounts

If your YouTube channel is a Brand Account, make sure you're signed into the correct Google account that manages that channel.


Connecting YouTube

Step-by-Step Connection

  1. Go to Integrations in the main sidebar
  2. Find YouTube in the Social Media category
  3. Click Connect
  4. A Google login popup will appear
  5. Sign in with the Google account linked to your YouTube channel
  6. Review the permissions Iverton AI is requesting
  7. Click Allow to grant access
  8. Select which channel to connect (if you manage multiple)

Permissions Requested

Iverton AI requests these YouTube/Google permissions:

PermissionScopeWhat It Allows
View YouTube accountyoutube.readonlyRead channel info and video data
View YouTube analyticsyoutube.analytics.readonlyAccess detailed performance metrics
Manage YouTube videosyoutube.force-sslSecure API access

Iverton AI only requests read-only access to your YouTube data. We cannot upload, modify, or delete your videos.

Channel Selection

If your Google account manages multiple YouTube channels:

  1. After authorization, you'll see a list of available channels
  2. Select the channel you want to connect
  3. Click Confirm to complete the setup

Available Data

Channel Analytics

Once connected, Iverton AI syncs the following channel data:

Overview Metrics

MetricDescription
SubscribersTotal subscriber count
Total viewsLifetime video views
Total videosNumber of public videos
Watch timeTotal hours watched

Growth Metrics

MetricDescription
New subscribersSubscribers gained in period
Lost subscribersSubscribers lost in period
Net growthNew minus lost subscribers
Views trendViews over time

Video Analytics

For each video, Iverton AI tracks:

Performance Metrics

MetricDescription
ViewsTotal video views
Watch timeHours watched
Average view durationHow long viewers watch
Average percentage viewed% of video watched on average

Engagement Metrics

MetricDescription
LikesNumber of likes
DislikesNumber of dislikes (if available)
CommentsNumber of comments
SharesNumber of shares

Traffic Sources

SourceDescription
YouTube searchViews from search
Suggested videosViews from recommendations
ExternalViews from outside YouTube
DirectViews from direct links
Browse featuresViews from home page

Audience Data

Understand who's watching your content:

DataDescription
GeographyTop countries and regions
DemographicsAge and gender breakdown
Device typeDesktop, mobile, tablet, TV
Playback locationYouTube watch page, embedded, etc.

Features

Dashboard Widgets

Add YouTube data to your dashboard:

Available Widgets

  • Channel overview card
  • Subscriber growth chart
  • Top performing videos
  • Recent video performance
  • Views trend line

To add a widget:

  1. Go to DashboardCustomize
  2. Click Add Widget
  3. Select a YouTube widget
  4. Configure date range and display options

Automated Reports

Include YouTube analytics in client reports:

  1. Go to ReportsCreate Report
  2. Add the YouTube section
  3. Select metrics to include:
    • Channel growth summary
    • Top videos by views/engagement
    • Traffic source breakdown
    • Audience insights
  4. Schedule automated delivery

Video Performance Tracking

Monitor video performance over time:

  1. Go to AnalyticsYouTube
  2. View the video list sorted by performance
  3. Click a video for detailed metrics
  4. Compare performance across videos

Data Syncing

Sync Schedule

Data TypeSync Frequency
Channel statsEvery hour
Video metricsEvery 4 hours
Audience dataDaily
Real-time viewsOn demand

YouTube's API has a delay of 1-2 days for some detailed metrics. Real-time data shows estimates that may differ from final numbers.

Manual Sync

To force an immediate data sync:

  1. Go to IntegrationsYouTube
  2. Click Sync Now
  3. Wait for the sync to complete

Token Management

Token Lifecycle

YouTube tokens are managed through Google OAuth:

  1. Initial Connection: You authorize via Google
  2. Access Token: Short-lived token (1 hour)
  3. Refresh Token: Used to get new access tokens
  4. Automatic Refresh: Iverton AI refreshes tokens automatically

Token Expiration

Tokens may need manual refresh if:

  • You revoked access in Google account settings
  • You changed your Google password
  • Extended inactivity (90+ days without sync)

Re-Authorization

If you see a "Token expired" warning:

  1. Go to IntegrationsYouTube
  2. Click Reconnect
  3. Complete the Google authorization flow
  4. Select your channel again

Troubleshooting

Common Issues

"Channel not appearing in selection"

  • Verify you're signed into the correct Google account
  • Check that you have Manager or Owner role on the channel
  • For Brand Accounts, switch to the correct account in Google

"Analytics data not available"

  • New channels may take 48 hours to show analytics
  • Verify the channel has public videos with views
  • Some metrics require a minimum data threshold

"API quota exceeded"

  • YouTube has strict API quotas (10,000 units/day)
  • Wait until the next day for quota reset
  • Reduce sync frequency if this happens often

"Token refresh failed"

  • Check if access was revoked in Google account
  • Re-authorize the connection
  • Verify the channel still exists and is active

"Subscriber count not updating"

  • YouTube may delay subscriber counts by up to 48 hours
  • Counts are rounded on the public API
  • Check YouTube Studio for exact numbers

YouTube API Limitations

LimitationDetails
API quota10,000 units per day
Data delay1-2 days for detailed analytics
Subscriber roundingRounded to nearest 10/100/1000
Historical dataLimited to last 18 months
Real-time accuracyEstimates may differ from final

Disconnecting

To remove the YouTube integration:

  1. Go to IntegrationsYouTube
  2. Click Disconnect
  3. Confirm the disconnection

To fully revoke access:

  1. Go to Google Account Permissions
  2. Find "Iverton AI" in the list
  3. Click Remove Access

API Endpoints Reference

For developers integrating with the YouTube API:

GET  /api/oauth/youtube              - Initiate YouTube OAuth
GET /api/oauth/youtube/callback - OAuth callback handler
GET /api/social-accounts - List connected accounts
DELETE /api/social-accounts/youtube/:id - Disconnect account
POST /api/oauth/youtube/refresh/:id - Refresh access token
GET /api/oauth/status/youtube/:id - Check connection status

Environment Variables

For self-hosted deployments:

# Google OAuth (used for YouTube)
GOOGLE_CLIENT_ID=your-client-id
GOOGLE_CLIENT_SECRET=your-client-secret

# YouTube-specific (if separate from main Google OAuth)
YOUTUBE_CLIENT_ID=your-youtube-client-id
YOUTUBE_CLIENT_SECRET=your-youtube-client-secret
YOUTUBE_REDIRECT_URI=https://your-domain/api/oauth/youtube/callback

Next: SEO Tools