yt_video_details
Retrieve owner metadata for one video ID, including private and scheduled titles, tags, and privacy status, plus owner-authorized retention drop-off cliffs, peer percentiles, and traffic sources.
Instructions
Fetch the owner's view of one video (title, description, tags, privacyStatus, publishAt; works for private and scheduled videos) 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_id": "<video_id>"
},
"name": "yt_video_details"
}
}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 |
|---|---|---|---|
| tags | No | ||
| title | No | ||
| videoId | Yes | ||
| publishAt | No | ||
| description | No | ||
| privacyStatus | No | ||
| studioDiagnosis | No |