YouTube
Kanalstatistik, videokatalog, publikumsengagement og analytics for creators.
Overblik
Forbind YouTube for at give AI-klienter skrivebeskyttet adgang til kanalmetadata, videokatalog, publikumsengagement og analytics — inklusive indtægtsmålinger, når din kanal er i YouTube Partner Program.
Forudsætninger
- En Google-konto med en tilknyttet YouTube-kanal
- Indtægtsmålinger kræver en monetiseret kanal (YouTube Partner Program)
- En stackgate.ai-konto
Credentials
- Sørg for at dit Google Cloud-projekt har YouTube Data API v3, YouTube Analytics API og YouTube Reporting API aktiveret (samme OAuth-klient som Gmail virker).
- Log ind på stackgate.ai.
- Gå til Mine integrationer og åbn YouTube.
- Klik Forbind YouTube og godkend Google OAuth (kanal-læsning, analytics og monetiserings-scopes).
- stackgate.ai gemmer dine tokens sikkert og cacher dit kanal-ID.
Ingen manuelle API-nøgler kræves.
Brug med AI-klienter
- Dedikeret endpoint:
POST /mcp/youtubemed Sanctum bearer token - Private gateway: én config til alle integrationer — brug
youtube__*-navngivne værktøjer
Se Dokumentation for HTTP-autentificering og opsætning af private gateway.
Fejlfinding
- 422 integration not configured — gennemfør OAuth-forbindelsesflowet i Mine integrationer.
- Token expired — afbryd og genforbind YouTube fra integrationssiden.
- Empty revenue metrics — din kanal er muligvis ikke monetiseret; ikke-monetiserede kanaler returnerer tomme monetiseringsdata.
- Quota errors — hubben deler en daglig YouTube Data API-kvote; undgå tung brug af søgeværktøjer.
Tilgængelige værktøjer
-
get_my_channel
Get the authenticated creator channel metadata, statistics, content details, and branding.
-
get_channel
Get a YouTube channel by ID or handle.
-
list_uploads
List videos from the authenticated channel uploads playlist.
-
list_videos
List one or more YouTube videos by ID with snippet, statistics, and content details.
-
get_video
Get a single YouTube video by ID with metadata and statistics.
-
list_playlists
List playlists for the authenticated channel or a specific channel ID.
-
list_playlist_items
List videos in a YouTube playlist.
-
search_channel_content
Search YouTube for videos, playlists, or channels. Costs 100 Data API quota units per call — use sparingly.
-
list_comment_threads
List comment threads on a video or all threads related to a channel.
-
list_comment_replies
List replies to a top-level comment.
-
list_activities
List recent channel activity events such as uploads, likes, and shares.
-
list_members
List channel members (sponsors) for the authenticated channel.
-
list_membership_levels
List membership pricing levels for the authenticated channel.
-
list_captions
List caption track metadata for a video (not the caption file contents).
-
list_video_categories
List YouTube video categories available in a region.
-
query_analytics_report
Query YouTube Analytics for views, watch time, demographics, traffic sources, and monetization metrics.
-
list_reporting_report_types
List available YouTube Reporting API report types for bulk historical exports.
-
list_reporting_jobs
List YouTube Reporting API jobs that generate bulk CSV reports.
-
get_reporting_job
Get details for a YouTube Reporting API job.
-
download_reporting_report
Download a completed YouTube Reporting API report as CSV text.
MCP-endpoint:
https://stackgate.ai/mcp/youtube
(HTTP) eller via
private gateway.
Relaterede workflows
Multi-integrations-playbooks, der bruger YouTube til konkrete forretningsresultater.