Youtube Connector Reference

54 metrics63 dimensions

The Youtube connector exposes 117 fields (54 metrics, 63 dimensions). Every field ID below can be passed to the Windsor.ai API in the fields parameter.


Available actions


Add Video to Playlist Add a video to the end of a playlist of the connected YouTube channel. playlist_id is a playlist id, as returned by the playlist_id read field, and video_id a YouTube video id. A video that the playlist already holds is not added again. Costs 50 units of the daily YouTube API quota.

Add a video to the end of a playlist of the connected YouTube channel. playlist_id is a playlist id, as returned by the playlist_id read field, and video_id a YouTube video id. A video that the playlist already holds is not added again. Costs 50 units of the daily YouTube API quota.

Parameters
playlist_idstringRequiredvideo_idstringRequired
Delete Comment Permanently delete a comment or reply that the connected YouTube channel posted on one of its videos, for example a reply from reply_to_comment. comment_id is the YouTube comment id. To remove another user's comment, use moderate_comment with status rejected. Costs 50 units of the daily YouTube API quota.

Permanently delete a comment or reply that the connected YouTube channel posted on one of its videos, for example a reply from reply_to_comment. comment_id is the YouTube comment id. To remove another user's comment, use moderate_comment with status rejected. Costs 50 units of the daily YouTube API quota.

Parameters
comment_idstringRequired
Moderate Comment Set the moderation status of a comment on a video of the connected YouTube channel. comment_id is a YouTube comment id, as returned by the comment_id read field. status heldForReview hides the comment until a moderator acts, published shows it again, and rejected removes it from public view together with its replies. A rejected comment cannot be published again. ban_author (only with rejected) also rejects the author's future comments. Comments that the channel posted itself cannot be moderated. YouTube shows a change after a short delay, and it can ignore a hold of a comment that a moderator already published once. Costs 50 units of the daily YouTube API quota.

Set the moderation status of a comment on a video of the connected YouTube channel. comment_id is a YouTube comment id, as returned by the comment_id read field. status heldForReview hides the comment until a moderator acts, published shows it again, and rejected removes it from public view together with its replies. A rejected comment cannot be published again. ban_author (only with rejected) also rejects the author's future comments. Comments that the channel posted itself cannot be moderated. YouTube shows a change after a short delay, and it can ignore a hold of a comment that a moderator already published once. Costs 50 units of the daily YouTube API quota.

Parameters
comment_idstringRequiredstatusstringRequiredban_authorboolean
Remove Video from Playlist Remove a video from a playlist of the connected YouTube channel. The video itself is not deleted. playlist_id is a playlist id, as returned by the playlist_id read field, and video_id a YouTube video id. Every entry of the video in the playlist is removed. Costs 50 units of the daily YouTube API quota for each entry.

Remove a video from a playlist of the connected YouTube channel. The video itself is not deleted. playlist_id is a playlist id, as returned by the playlist_id read field, and video_id a YouTube video id. Every entry of the video in the playlist is removed. Costs 50 units of the daily YouTube API quota for each entry.

Parameters
playlist_idstringRequiredvideo_idstringRequired
Reply to Comment Reply to a top-level comment on a video of the connected YouTube channel. comment_id is a YouTube comment id, as returned by the comment_id read field. The reply is public and posted as the channel. Costs 50 units of the daily YouTube API quota. Use delete_comment to remove the reply.

Reply to a top-level comment on a video of the connected YouTube channel. comment_id is a YouTube comment id, as returned by the comment_id read field. The reply is public and posted as the channel. Costs 50 units of the daily YouTube API quota. Use delete_comment to remove the reply.

Parameters
comment_idstringRequiredtextstringRequired
Update Video Details Change the details of a video on the connected YouTube channel. video_id is a YouTube video id, as returned by the video read field. Set only the details to change: title, description, tags (replaces the whole tag list), category_id (a YouTube video category id, for example 22 for People & Blogs) and privacy_status. The other details keep their values. Costs 50 units of the daily YouTube API quota.

Change the details of a video on the connected YouTube channel. video_id is a YouTube video id, as returned by the video read field. Set only the details to change: title, description, tags (replaces the whole tag list), category_id (a YouTube video category id, for example 22 for People & Blogs) and privacy_status. The other details keep their values. Costs 50 units of the daily YouTube API quota.

Parameters
video_idstringRequiredtitlestringdescriptionstringtagsstringcategory_idstringprivacy_statusstring
Upload Video Upload a video from a public URL to the connected YouTube channel. Provide video_url, title, made_for_kids and privacy_status (private, unlisted or public; defaults to private). Optionally set description, tags, category_id (default 22, People & Blogs) and publish_at, an ISO 8601 time with a timezone that YouTube schedules only on a private video. The file is downloaded server-side and sent with a resumable upload; it can be at most 100 MB. Returns the video id and URL. A YouTube Data API project allows 100 uploads a day. YouTube processes the video after the upload, so it can take a few minutes to appear in YouTube Studio.

Upload a video from a public URL to the connected YouTube channel. Provide video_url, title, made_for_kids and privacy_status (private, unlisted or public; defaults to private). Optionally set description, tags, category_id (default 22, People & Blogs) and publish_at, an ISO 8601 time with a timezone that YouTube schedules only on a private video. The file is downloaded server-side and sent with a resumable upload; it can be at most 100 MB. Returns the video id and URL. A YouTube Data API project allows 100 uploads a day. YouTube processes the video after the upload, so it can take a few minutes to appear in YouTube Studio.

Parameters
video_urlstringRequiredtitlestringRequireddescriptionstringtagsstringprivacy_statusstringcategory_idstringmade_for_kidsbooleanRequiredpublish_atstring

Youtube Fields

Youtube Audience Retention fields

The Audience Retention report of the Youtube connector includes 6 fields.

ID Type Name Description
audience_watch_ratio NUMERIC Audience Watch Ratio The number of viewers watching at this point of the video, divided by the number of views. Rewatches can make it greater than 1.
elapsed_video_time_ratio NUMERIC Elapsed Video Time Ratio The point in the video, as a ratio of its length from 0.01 to 1. Groups the audience retention report, which needs a video filter (video eq <id> or video in [...]); date is the query window end.
relative_retention_performance NUMERIC Relative Retention Performance How well the video keeps viewers at this point compared with YouTube videos of similar length, from 0 (worst) to 1 (best).
started_watching NUMERIC Started Watching The number of times viewers started watching at this point.
stopped_watching NUMERIC Stopped Watching The number of times viewers stopped watching at this point.
total_segment_impressions NUMERIC Total Segment Impressions The number of times this point of the video was watched.

Youtube Comments fields

The Comments report of the Youtube connector includes 7 fields.

ID Type Name Description
comment_author TEXT Comment Author The display name of the user who posted the comment.
comment_id TEXT Comment ID The ID of a top-level comment on one of the channel's videos, as used by the reply_to_comment, moderate_comment and delete_comment actions. Lists published comments, one row per comment, dated by the day it was posted. Needs the permission to manage the channel. If the connection is read-only, reconnect at https://onboard.windsor.ai/app/youtube.
comment_like_count NUMERIC Comment Like Count The number of likes on the comment.
comment_published_at TIMESTAMP Comment Published At The date and time when the comment was posted (UTC).
comment_reply_count NUMERIC Comment Reply Count The number of replies to the comment.
comment_text TEXT Comment Text The text of the comment, as plain text.
comment_video_id TEXT Comment Video ID The ID of the video that the comment was posted on.

Youtube Data - Channel fields

The Data - Channel report of the Youtube connector includes 10 fields.

ID Type Name Description
account_id TEXT Account ID The ID that YouTube uses to uniquely identify the channel/account.
account_name TEXT Account Name The channel's title/account name.
channel_description TEXT Channel Description The channel's description.
channel_id TEXT Channel ID The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
channel_image IMAGE_URL Thumbnail Thumbnail image URL associated with the channel
channel_title TEXT Channel Title The channel's title.
comment_count NUMERIC Comment Count The total number of comments on the channel
subscriber_count NUMERIC Subscriber Count The channel's absolute subscriber total at query time: a point-in-time snapshot from the Data API, not bounded by the requested date range. YouTube Analytics exposes no absolute subscriber metric, so track changes over time with subscribers_gained_channel / subscribers_lost_channel.
video_count NUMERIC Videos Published The number of public videos uploaded to the channel.
view_count NUMERIC View Count The total number of views for all videos on the channel

Youtube Data - Video fields

The Data - Video report of the Youtube connector includes 16 fields.

ID Type Name Description
privacy_status TEXT Privacy Status The video's privacy status.
published_at DATE Publish date The date and time that the video was published. Note that this time might be different than the time that the video was uploaded.
video_age_restriction TEXT Age restriction A rating that YouTube uses to identify age-restricted content.
video_category TEXT Category Id The YouTube video category associated with the video.
video_comment_count NUMERIC Video Comment Count The lifetime total number of comments on the video. Absent when comments are disabled for the video.
video_description TEXT Video description The video's description.
video_has_captions BOOLEAN Video has captions Indicates whether captions are available for the video.
video_length TEXT Video length The length of the video.
video_licensed_content BOOLEAN Video is licensed content Indicates whether the video represents licensed content, which means that the content was uploaded to a channel linked to a YouTube content partner and then claimed by that partner.
video_like_count NUMERIC Video Like Count The lifetime total number of users who indicated that they liked the video. Absent when the video's like count is hidden.
video_resolution TEXT Video resolution Indicates whether the video is available in high definition (HD) or only in standard definition.
video_tags TEXT Video tags A list of keyword tags associated with the video.
video_title TEXT Video title The video title
video_view_count NUMERIC Video View Count The lifetime total number of times the video was viewed.
videoimage IMAGE_URL Video image URL (default) Thumbnail image URL associated with the video
videourl TEXT Full Video URL Full URL of the video

Youtube Demographics fields

The Demographics report of the Youtube connector includes 3 fields.

ID Type Name Description
viewer_age_group TEXT Viewer Age Group The viewer age bucket, one of age13-17, age18-24, age25-34, age35-44, age45-54, age55-64 or age65-. Groups a channel-wide report by age; combine with viewer_percentage and viewer_gender. The API reports demographics as percentages only (no absolute viewer counts) and can't break them down by date.
viewer_gender TEXT Viewer Gender The viewer gender, one of female, male or user_specified. Groups a channel-wide report by gender; combine with viewer_percentage and viewer_age_group. The API reports demographics as percentages only (no absolute viewer counts) and can't break them down by date.
viewer_percentage PERCENT Viewer Percentage The percentage of viewers in each viewer_age_group or viewer_gender bucket; the values in a report sum to about 100. This is the only metric the demographic reports expose (the API has no absolute demographic viewer count).

Youtube Geography fields

The Geography report of the Youtube connector includes 5 fields.

ID Type Name Description
city CITY City The estimated city the activity is associated with. Groups the report by city; the YouTube Analytics API returns at most the top 250 cities and only covers data since 2022.
continent TEXT Continent The continent the activity is associated with, as YouTube's UN region codes name it: Africa, Americas, Asia, Europe or Oceania. Sends one request per continent.
country COUNTRY Country The ISO-3166-1 two-letter code of the country the activity is associated with. Groups the report by country; combine with views, estimated_minutes_watched or engaged_views. The YouTube Analytics API reports 0 subscribers by country, so subscribers_gained and subscribers_lost are refused with it.
region REGION Region The ISO-3166-2 province/state code the activity is associated with. Groups the report by region and is automatically restricted to the United States (country==US), the only country the API breaks down by province.
subcontinent TEXT Sub-Continent The UN sub-region the activity is associated with, for example Western Europe or South America. Sends one request per each of the 22 sub-regions.

Youtube Playlist Analytics fields

The Playlist Analytics report of the Youtube connector includes 7 fields.

ID Type Name Description
average_time_in_playlist NUMERIC Average Time In Playlist The average time, in seconds, that a viewer watched videos in the playlist after starting it.
average_time_in_playlist_duplicate NUMERIC Average Time In Playlist (Duplicate) (Internal) Duplicate of average_time_in_playlist, used in its aggregate formula.
playlist_estimated_minutes_watched NUMERIC Playlist Estimated Minutes Watched The minutes that viewers watched videos as part of the playlist.
playlist_saves NUMERIC Playlist Saves The net number of times that viewers saved the playlist: saves minus removals. YouTube does not report the two separately.
playlist_starts NUMERIC Playlist Starts The number of times that viewers started playing the playlist, on the web only. Groups the report by playlist.
playlist_views NUMERIC Playlist Views The number of times that videos in the playlist were viewed as part of the playlist, also videos of other channels.
views_per_playlist_start NUMERIC Views Per Playlist Start The average number of video views each time the playlist was started.

Youtube Video fields

The Video report of the Youtube connector includes 30 fields.

ID Type Name Description
annotation_click_through_rate NUMERIC (Deprecated) Annotation Click Through Rate The ratio of annotations that viewers clicked to the total number of clickable annotation impressions.
annotation_clickable_impressions NUMERIC (Deprecated) Annotation Clickable Impressions The number of annotations that appeared and could be clicked.
annotation_clicks NUMERIC (Deprecated) Annotation Clicks The number of clicked annotations.
annotation_closable_impressions NUMERIC (Deprecated) Annotation Closable Impressions The number of annotations that appeared and could be closed.
annotation_close_rate NUMERIC (Deprecated) Annotation Close Rate The ratio of annotations that viewers closed to the total number of annotation impressions.
annotation_closes NUMERIC (Deprecated) Annotation Closes The number of closed annotations.
annotation_impressions NUMERIC (Deprecated) Annotation Impressions The total number of annotation impressions.
average_view_duration NUMERIC Average View Duration The average length, in seconds, of video playbacks.
average_view_percentage PERCENT Average View Percentage The average percentage of a video watched during a video playback.
average_view_percentage_duplicate PERCENT (Internal) Duplicate-Average View Percentage (Internal) Duplicate of average_view_percentage to be used in formula
card_click_rate PERCENT Card Click Rate The click-through-rate for cards, which is calculated as the ratio of card clicks to card impressions.
card_clicks NUMERIC Card Clicks The number of times that cards were clicked.
card_impressions NUMERIC Card Impressions The number of times cards were displayed. When the card panel is opened, a card impression is logged for each of the video's cards.
card_teaser_click_rate PERCENT Card Teaser Click Rate The click-through-rate for card teasers, which is calculated as the ratio of clicks on card teasers to the total number of card teaser impressions.
card_teaser_clicks NUMERIC Card Teaser Clicks The number of clicks on card teasers. Card icon clicks are attributed to the last teaser displayed to the user.
card_teaser_impressions NUMERIC Card Teaser Impressions The number of times that card teasers were displayed. A video view can generate multiple teaser impressions.
comments NUMERIC Comments The number of times that users commented on a video.
creator_content_type TEXT Content Type The type of YouTube content associated with the row. One of shorts, videoOnDemand, liveStream, story, or unspecified.
date DATE Date Date of reported values.
dislikes NUMERIC Dislikes The number of times that users indicated that they disliked a video by giving it a negative rating.
engaged_views NUMERIC Engaged Views The number of times the channel's videos have been viewed past the initial seconds. Reflects the pre-March-2025 view-counting methodology and is the comparable metric for Shorts, whose 'views' now counts plays and replays with no minimum watch time.
estimated_minutes_watched NUMERIC Estimated Minutes Watched The number of minutes that users watched videos for the specified channel, content owner, video, or playlist.
estimated_red_minutes_watched NUMERIC Estimated Red Minutes Watched The number of minutes that YouTube Premium (previously known as YouTube Red) members watched a video.
likes NUMERIC Likes The number of times that users indicated that they liked a video by giving it a positive rating.
red_views NUMERIC Red Views The number of times that a video was viewed by YouTube Premium (previously known as YouTube Red) members.
shares NUMERIC Shares The number of times that users shared a video through the Share button.
subscribers_gained NUMERIC Subscribers Gained The number of subscribers gained, attributed to the videos in the report (all the channel's videos when video is not requested) and bounded by the requested date range. This is a relative change per video, not the channel's absolute subscriber total (see subscriber_count) nor a channel-wide time series that also counts subscriptions not made on a video (see subscribers_gained_channel).
subscribers_lost NUMERIC Subscribers Lost The number of subscribers lost, attributed to the videos in the report (all the channel's videos when video is not requested) and bounded by the requested date range. This is a relative change per video, not the channel's absolute subscriber total (see subscriber_count) nor a channel-wide time series that also counts subscriptions not made on a video (see subscribers_lost_channel).
video TEXT Video The ID of a YouTube video (Youtube Analytics).
views NUMERIC YouTube Video Views The number of times that a video was viewed. Without the video field the channel total is reported, which keeps the views of videos deleted since, as YouTube Studio does; per-video rows can't include deleted videos. Thumbnail impressions, thumbnail click-through rate, unique viewers, new and returning viewers and Shorts 'stayed to watch' are not available in this connector.

Youtube other fields

The Youtube connector has 33 fields that do not belong to a named report, or belong to a report with only one or two fields.

ID Type Name Description Report
data_fetched_at TIMESTAMP Data fetched at UTC timestamp (second precision) of when the connector request that pulled the row started. Freshly pulled rows show this request's start time; cache hits keep the start time of the request that filled the cache. Selecting this field disables aggregation, so rows are returned individually (each keeping its own fetch time) instead of being summed.
datasource TEXT Data Source The name of the Windsor connector returning the row
day_of_month TEXT Day of month Day of the month
device_type TEXT Device Type The viewer's device, e.g. DESKTOP, MOBILE, TABLET or TV. Combine with operating_system, views, estimated_minutes_watched, engaged_views, date and video. Device
live_or_on_demand TEXT Live Or On Demand LIVE for activity during a live broadcast, ON_DEMAND otherwise. Groups the report; combine with views, estimated_minutes_watched or engaged_views. Live Or On Demand
month TEXT Month Number of the month
now TIMESTAMP Now Current timestamp
operating_system TEXT Operating System The viewer's operating system, e.g. ANDROID, IOS or WINDOWS. Combine with device_type, views, estimated_minutes_watched, engaged_views, date and video. Device
playback_location_type TEXT Playback Location Type Where the video played, e.g. WATCH (the YouTube watch page), EMBEDDED (another site), CHANNEL or SHORTS. Combine with views, estimated_minutes_watched, engaged_views, date and video. Playback Location
playlist_id TEXT Playlist ID The ID of a playlist that the video belongs to. A video in several playlists produces one row per playlist; a video in none is reported with an empty value. Data - Playlist
playlist_title TEXT Playlist Title The title of a playlist that the video belongs to. Data - Playlist
sharing_service TEXT Sharing Service The service that viewers shared the videos to, for example WHATS_APP or FACEBOOK, with the shares metric. YouTube reports it only for the whole date range, so date is the last day of the range. Sharing Service
source TEXT Source The name of the Windsor connector returning the row
subscribed_status TEXT Subscribed Status Whether the viewers were subscribed to the channel: SUBSCRIBED or UNSUBSCRIBED. Combine with views, engaged_views, estimated_minutes_watched, likes, dislikes, shares, average_view_duration, average_view_percentage, date and video. Subscribed Status
subscribers_gained_channel NUMERIC Subscribers Gained (Channel) Channel-wide subscribers gained per day: a time series across all content, not attributed to individual videos. Request together with date. Combine with channel totals such as views; not with video or other per-video fields. Channel Analytics
subscribers_lost_channel NUMERIC Subscribers Lost (Channel) Channel-wide subscribers lost per day: a time series across all content, not attributed to individual videos. Request together with date. Combine with channel totals such as views; not with video or other per-video fields. Channel Analytics
today DATE Today Today's date
traffic_source TEXT Traffic Source How viewers reached the videos, e.g. YT_SEARCH, RELATED_VIDEO, EXT_URL, SUBSCRIBER or PLAYLIST. Groups the report by traffic source; combine with views, estimated_minutes_watched or engaged_views, and with video for one row per video. Traffic Source
traffic_source_detail TEXT Traffic Source Detail The detail of a traffic source, the top 25 per traffic_source: the search term for YT_SEARCH, the URL or site for EXT_URL, the video id for RELATED_VIDEO. Channel-wide; date is the query window end. YouTube hides details with few views. Traffic Source Detail
videos_added_to_playlists NUMERIC Videos Added To Playlists The number of times that videos were added to any YouTube playlists. The videos could have been added to the video owner's playlist or to other channels' playlists. Playlist Activity
videos_removed_from_playlists NUMERIC Videos Removed From Playlists The number of times that videos were removed from any YouTube playlists. The videos could have been removed from the video owner's playlist or from other channels' playlists. Playlist Activity
week TEXT Week Week (Sun-Sat).
week_day TEXT Day of week and day number Weekday number and name combined (Sun-Sat).Numbered from 0 Sunday to 6 Saturday.
week_day_iso TEXT Day of week and day number, ISO Weekday number and name combined, ISO format (Mon-Sun).Numbered from 1 Monday to 7
week_iso TEXT Week ISO Week, ISO format (Mon-Sun).
year TEXT Year Year
year_month TEXT Yearmonth Year and month, e.g. 2024|3
year_month_name TEXT Year month name Year and month with the month name written out, e.g. "Jan 2025".
year_of_week TEXT Year of week The year that contains first day of the week (Sun-Sat).
year_of_week_iso TEXT Year of week, ISO The year that contains first day of the ISO week (Mon-Sun).
year_week TEXT Year week Year and week for US weeks (Sun-Sat), e.g. 2024|15
year_week_iso TEXT Year week ISO Year and week for ISO weeks (Mon-Sun), e.g. 2024|20
youtube_product TEXT YouTube Product The YouTube app the activity happened in: CORE, KIDS, MUSIC, GAMING or UNKNOWN. Groups the report by product; combine with views, estimated_minutes_watched or engaged_views. YouTube Product