yt_video_details
Fetch public metadata and owner-authorized retention diagnostics for one YouTube video ID, including audience retention curves, drop-off cliffs, peer percentiles, and traffic sources.
Instructions
Fetch public video metadata plus owner-authorized YouTube Analytics retention diagnostics for a single 11-character video_id: 100-point elapsedVideoTimeRatio audience retention curve, exact MM:SS drop-off cliffs, relativeRetentionPerformance peer percentiles, and traffic source breakdown. Retention curve and traffic diagnostics require channel-owner OAuth2 (a studioDiagnosisError explains a missing scope). Public page metadata (title, views, likes) is scraped only when force_public=true or MATEAI_YT_PUBLIC_SCRAPE=1. When words_or_script_path is provided, maps each retention drop-off cliff onto the exact spoken words at that timestamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | 11-character YouTube video or Short ID (e.g. 'I9c6W135VZk'). | |
| force_public | No | Opt in to scraping the public watch page for title/views/likes. Only set when the user asks for it. | |
| words_or_script_path | No | Optional local filesystem path to a readable Whisper words.js or JSON word-timestamp file used to align retention drop-off cliffs with spoken words. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| videoId | Yes | ||
| likeCount | No | ||
| viewCount | No | ||
| studioDiagnosis | No |