Where views came from
yt_traffic_sourcesDiagnose why a video took off or flatlined by breaking down views and watch time by traffic source—search, suggested, playlists, external, and more. Optionally scope to one video.
Instructions
Break views and watch time down by how viewers arrived: YouTube search, suggested/related video, channel page, playlist, external sites, notifications, subscriptions feed, Shorts feed, end screens, and so on. The single most useful diagnostic for 'why did this take off' or 'why did it flatline'. Optionally scope it to one video. Source names come back as the API's own constants (YT_SEARCH, RELATED_VIDEO, EXT_URL, SHORTS, SUBSCRIBER, PLAYLIST, NOTIFICATION, END_SCREEN, NO_LINK_OTHER, and others).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | No | The traffic-source report supports only views and estimatedMinutesWatched. | |
| end_date | Yes | End date, YYYY-MM-DD, inclusive. YouTube Analytics lags roughly 2-3 days, so ending the range at today usually returns zeros for the last few days. | |
| video_id | No | Optional: restrict to a single video's traffic instead of the whole channel. | |
| start_date | Yes | Start date, YYYY-MM-DD, inclusive. Interpreted in the channel's timezone. |