Skip to main content

YouTube Integration

YouTube Data API v3 provides channel statistics, video metrics, and engagement data. The @pixel agent uses it for social media analytics and content performance tracking. Supports multiple accounts via OAuth.

Setup

1. Create OAuth Credentials

  1. Go to Google Cloud Console
  2. Enable the YouTube Data API v3
  3. Create an OAuth 2.0 Client ID (Web application)
  4. Under Authorized redirect URIs, add: http://localhost:8765/callback/youtube

2. Configure .env

3. Connect Your Account

Open the dashboard Integrations page and click Connect on YouTube. Complete the OAuth flow. Tokens are saved to .env automatically.

4. Test the Connection

Available Commands

The int-youtube skill queries the YouTube Data API:

Key Metrics

  • Subscribers (with daily/weekly/monthly delta)
  • Total views and per-video views
  • Engagement rate: (likes + comments) / views
  • Best performing video of the period
  • Publishing frequency
  • Recent comment sentiment

Skills That Use YouTube

Automated Routines