AI-generated Key Takeaways
-
The YouTube Reporting API uses dimensions to aggregate data, with each row in a report representing a unique combination of these dimension values, which form the primary key.
-
Core dimensions like
age_group,channel_id,country_code,date,gender,sharing_service,uploader_type, andvideo_idare fundamental to analyzing viewer data, and are subject to the YouTube API Deprecation Policy. -
Additional dimensions such as
asset_id,playlist_id,province_code,playback_location_type,live_or_on_demand, andsubscribed_statusprovide further granularity on content and user activity, and aren't subject to the API Deprecation Policy. -
Traffic source dimensions like
traffic_source_typeandtraffic_source_detailenable tracking how viewers discover content, including sources such as YouTube advertising, search, suggested videos, and external websites. -
Ad performance is tracked using the
ad_typedimension, providing insights into various ad formats like skippable and non-skippable video ads, display ads, and bumper ads.
This document defines the dimensions that the YouTube Reporting API supports. This API retrieves bulk reports that contain YouTube Analytics data for a channel or content owner.
Dimensions are common criteria that are used to aggregate data, such as the date on which user activity occurred or the country where users were located.
Each bulk report supports a predefined list of dimensions, and, in any report, each row of data has a unique combination of dimension values. As such, each row's combination of dimension values functions as the primary key for that row. You neither need to specify nor have the option of specifying which dimensions are included in the report.
Core dimensions
While the YouTube Reporting API is subject to the Deprecation Policy defined in the Terms of Service, non-core dimensions (and non-core metrics) are not subject to the policy. In the definitions on this page, any dimension that is a core dimension is explicitly identified as such.
The following list identifies the API's core dimensions. All of them are also core dimensions in the YouTube Analytics API.
For more information, see the list of the YouTube APIs subject to the Deprecation Policy.
Dimensions
The following sections define the dimensions that are used in the YouTube Reporting API's bulk reports. Unless otherwise noted, these dimensions are used in both channel and content owner reports.
Resources
These dimensions correspond to resources that channels and content owners manage on YouTube:
- video_id (core dimension)
- The ID of a YouTube video. In the YouTube Data API, this is the value of a
videoresource'sidproperty. This is a core dimension and is subject to the Deprecation Policy. - playlist_id
- The ID of a YouTube playlist. In the YouTube Data API, this is the value of a
playlistresource'sidproperty. - channel_id (core dimension)
- The ID for a YouTube channel. In the YouTube Data API, this is the value of a
channelresource'sidproperty. This is a core dimension and is subject to the Deprecation Policy. - asset_id (only used in content owner reports)
- The ID of an asset managed in YouTube's Content ID system. An asset is the representation of your intellectual property in that system. On the YouTube website, you can locate asset IDs in YouTube Content Manager. You can also retrieve them using the YouTube Content ID API.
Geographic areas
These dimensions identify a geographic region associated with user activity, ad performance, or estimated revenue metrics.
- country_code (core dimension)
- The country associated with the metrics in the report row. The dimension value is a two-letter ISO-3166-1 country code, such as
US,CN(China), orFR(France). The country codeZZis used to report metrics for which YouTube could not identify the associated country. This is a core dimension and is subject to the Deprecation Policy. - province_code
- The U.S. state or territory associated with the metrics in the report row. The dimension value is an ISO 3166-2 code that identifies a U.S. state or the District of Columbia, such as
US-MI(Michigan) orUS-TX(Texas). The province codeUS-ZZis used to report metrics for which YouTube could not identify the associated U.S. state.Note: This dimension does not support ISO 3166-2 values that identify U.S. outlying areas since those territories also have their own ISO 3166-1 country codes. It also does not support subdivisions of countries other than the United States.
Time periods
- date (core dimension)
- This dimension identifies the date associated with the metrics in each report row. In bulk
reports, the date refers to the period beginning at 12:00AM Pacific time and ending at
11:59PM Pacific time on the specified day, month, and year. Depending on the time of year,
Pacific time is either UTC-7 or UTC-8.
Note that while dates typically represent a 24-hour period, dates when clocks are adjusted forward for Daylight Savings Time represent a 23-hour period, and dates when clocks are adjusted backward represent a 25-hour period. This is a core dimension and is subject to the Deprecation Policy.
Playback locations
These dimensions provide insight about the page or application where user activity occurred.
- playback_location_type
-
This dimension identifies the type of page or application where user activity occurred. The following table lists dimension values:
Values 0The data pertains to activity that occurred on the video's YouTube watch page or in an official YouTube application, such as the YouTube Android app. 1The data pertains to activity that occurred on another website or application where the video was embedded using an <iframe>or<object>embed.2The data pertains to activity that occurred on a YouTube channel page. 5The data pertains to metrics that cannot be classified into one of the other listed location types. 7The data pertains to views that took place on the YouTube home page or home screen, in the user's subscription feed, or in another YouTube browsing feature. 8The data pertains to views that took place directly on the YouTube search results page. 10The data pertains to views that took place on the YouTube Shorts feed. - playback_location_detail
- This dimension specifies the URL or application where the playback occurred. This dimension is only supported for views that occurred in embedded players, which means that the dimension value is only populated in rows where the dimension's value is
1. In other rows, this dimension's value is empty.
Playback details
- live_or_on_demand
- This dimension indicates whether the user activity metrics in the data row are associated with views of a live broadcast. Data for this dimension is available for dates beginning April 1, 2014.
The following table lists dimension values:
Values liveThe row's data describes user activity that occurred during a live broadcast. onDemandThe row's data describes user activity that did not occur during a live broadcast. - subscribed_status
- This dimension indicates whether the user activity metrics in the data row are associated with viewers who were subscribed to the video's or playlist's channel.
Possible values are
subscribedandunsubscribed.
Note that the dimension value is accurate as of the time that the user activity occurs. For example, suppose a user has not subscribed to a channel and watches one of that channel's videos, then subscribes to the channel and watches another video, all on the same day. The channel's report indicates that one view has asubscribed_statusvalue ofsubscribed, and one view has asubscribed_statusvalue ofunsubscribed.
Traffic sources
- traffic_source_type
- This dimension identifies the referrer type associated with the user activity metrics. The referrer type describes the manner in which users reached the video or channel associated with the row of data in the report. The following table lists dimension values:
Values 0Direct or unknown
This value encompasses direct traffic to a page as well as pages for which the referrer is unknown. In query reports, this traffic source type is identified asNO_LINK_OTHERorUNKNOWN_MOBILE_OR_DIRECT.1YouTube advertising
The viewer was referred to the video by an advertisement. In a traffic source report, if this dimension's value is1, then the traffic_source_detail dimension identifies the type of advertisement that was shown to the viewer. In query reports, this traffic source type is identified asADVERTISING. Possible values are:Values ctp_engagement_adClick-to-play engagement ad engagement_adEngagement ad googlemediaadsGoogle Search ads insearch_displayTrueView in-search and in-display instreamTrueView in-stream instream-selectReserved skippable in-stream unknownUncategorized YouTube advertising video_wallVideo wall yvaHomepage video ad 3Browse features
The viewer was referred from a YouTube page that leads to videos or channels. In a traffic source report, if this dimension's value is3, then the traffic_source_detail dimension identifies the feature that referred the traffic. In query reports, this traffic source type is identified asSUBSCRIBER. Possible values are:Values exploreKids: explore learningKids: learning musicMusic feed my-historyWatch history my-subscriptionsMy subscriptions my-uploadsMy uploads podcastsPodcasts destination page showsKids: shows watch-laterWatch later what-to-watchWhat to watch 4YouTube channels
Viewers were referred from a YouTube channel page. In a traffic source report, if this dimension's value is4, then the traffic_source_detail dimension specifies the channel ID for that channel. In query reports, this traffic source type is identified asYT_CHANNEL.5YouTube search
Viewers were referred from YouTube search results. In a traffic source report, if this dimension's value is5, then the traffic_source_detail dimension specifies the associated search term. In query reports, this traffic source type is identified asYT_SEARCH.7Suggested videos
Viewers were referred from a related video listing on another video watch page. In a traffic source report, if this dimension's value is7, then the traffic_source_detail dimension identifies the video ID for that video. In query reports, this traffic source type is identified asRELATED_VIDEOorYT_RELATED.8Other YouTube features
Viewers were referred from a YouTube page that does not fall into one of the other listed traffic source types. In a traffic source report, if this dimension's value is8, then the traffic_source_detail dimension identifies the page URL. In query reports, this traffic source type is identified asYT_OTHER_PAGE. Possible values are:Values g-crecRecommended channels offlineOffline promotionPartner promotion unknownUnknown widgetAndroid homescreen widget youtu.beyoutu.be ytremoteYouTube Remote 9External
Viewers were referred from a link on another website. This traffic source includes referrals from Google Search results. In a traffic source report, if this dimension's value is9, then the traffic_source_detail dimension identifies the external web page. In query reports, this traffic source type is identified asEXT_URL.11Video cards and annotations
Viewers were referred by clicking on an annotation or card in another video. In query reports, this traffic source type is identified asANNOTATION.14Playlists
Views occurred while the video was being played as part of a playlist. In query reports, this traffic source type is identified asPLAYLIST.
Note that this traffic source differs from source type18, which indicates that the views originated from the page that lists all of the videos in the playlist.17Notifications
Viewers were referred from an email or notification from YouTube. In query reports, this traffic source type is identified asNOTIFICATION. Possible values are:Values inboxpushsdigViews originated from notifications that were part of the subscriber digest uploaded_otherViews originated from non-push notifications, such as email or Inbox notifications, sent to subscribers when a video was uploaded uploaded_pushViews originated from push notifications sent to subscribers when a video was uploaded 18Playlist pages
Views originated from a page that lists all of the videos in a playlist. In query reports, this traffic source type is identified asYT_PLAYLIST_PAGE.
Note that this traffic source differs from source type14, which indicates that the views occurred while the video was being played as part of a playlist.19Programming from claimed content
Views originated from claimed, user-uploaded videos that the content owner used to promote the viewed content. In query reports, this traffic source is identified asCAMPAIGN_CARD. This traffic source is only supported for content owner reports.20Interactive video endscreen
Views originated from the endscreen of another video. In query reports, this traffic source type is identified asEND_SCREEN.23Stories
The viewer was referred by swiping vertically from the previous video in the Stories viewing experience.24Shorts
The viewer was referred by swiping vertically from the previous video in the Shorts viewing experience.25Product Pages
Videos on a product page brought viewers to another channel.26Hashtag Pages
Views originated from VOD hashtag pages or Shorts hashtag pivot pages.27Sound Pages
Views originated from Shorts sound pivot pages.28Live redirect
Views originated from Live Redirects.29Podcasts
Views originated from the YouTube Podcasts page.30Remixed video
Views originated from a remixed video link in the Shorts player.31Vertical live feed
Views originated from the vertical live feed.32Related video
Views originated from a related video link in the Shorts player. - traffic_source_detail
- This dimension provides additional detail about the traffic source that the row's traffic_source_type dimension value. This dimension value is populated for the following traffic_source_type dimension values:
1– The dimension value identifies the type of advertisement that was shown to the viewer. See the traffic_source_type definition for a list of possible values.3– The dimension value identifies the YouTube feature that led to the referred traffic. See the traffic_source_type definition for a list of possible values.4– The dimension value specifies the channel ID from which the viewer was referred.5– The dimension value specifies the search term that led to the referred traffic.7– The dimension value identifies the video from which the viewer was referred.8– The dimension value identifies the type of YouTube page that led to the referred traffic. See the traffic_source_type definition for a list of possible values.9– The dimension value identifies the external page from which the traffic was referred.17– The dimension value identifies the type of notification that led to the referred traffic. See the traffic_source_type definition for a list of possible values.19– The dimension value identifies the video from which the viewer was referred.20– The dimension value identifies the video from which the viewer was referred.25– The dimension value identifies the product ID, which is a Google Knowledge Graph ID.26– The dimension value identifies the hashtag that led to the referred traffic.27– The dimension value identifies the video from which the viewer was referred.28– The dimension value specifies the channel ID from which the viewer was referred via Live Redirects.30– The dimension value specifies the video from which the viewer was referred.
Devices
- device_type
- This dimension identifies the physical form factor of the device on which the view occurred.
The following table lists valid dimension values:
Values 100Unknown 101Computer 102TV 103Game console 104Mobile phone 105Tablet - operating_system
- This dimension identifies the software system of the device on which the view occurred.
The following table lists valid dimension values:
Values 1Other 2Windows 3Windows Mobile 4Android 5iOS 6Symbian 7Blackberry 9Macintosh 10PlayStation 11Bada 12WebOS 13Linux 14Hiptop 15MeeGo 16Wii 17Xbox 18PlayStation Vita 19Smart TV 20Nintendo 3DS 21Chromecast 22Tizen 23Firefox 24RealMedia 25KaiOS 26Roku 27Nintendo Switch 28Apple tvOS 29Fire OS 30ChromeOS 31Vidaa 32VegaOS
Demographics
Demographic dimensions help you to understand the age range and gender distribution of your audience. The YouTube Help Center contains additional information about demographic data in YouTube Analytics reports.
- age_group (core dimension)
- This dimension identifies the age group of the logged-in users associated with the report data. The API uses the following age groups:
AGE_13_17AGE_18_24AGE_25_34AGE_35_44AGE_45_54AGE_55_64AGE_65_
- gender (core dimension)
- This dimension identifies the gender of the logged-in users associated with the report data.
Valid values are
FEMALE,MALEandGENDER_OTHER. This is a core dimension and is subject to the Deprecation Policy.
Engagement and content sharing
- This dimension identifies the service that was used to share videos. Videos can be shared on YouTube (or via the YouTube player) using the "Share" button. This is a core dimension and is subject to the Deprecation Policy.
The following table lists valid dimension values:
Values 0Unknown 1Digg 4reddit 5StumbleUpon 6mixi 7Yahoo! Japan 8goo 9Ameba 10Facebook 11Myspace 12NUjij 18Tuenti 20menéame 21Wykop 22Skyrock 25Fotka 28hi5 31Twitter 32Cyworld 34Blogger 36VKontakte (ВКонтакте) 37Rakuten (楽天市場) 38LiveJournal 39Odnoklassniki (Одноклассники) 40tumblr. 42Linkedin 43Google+ 44Weibo 45Pinterest 46Email 47Facebook Messenger 49WhatsApp 50Hangouts 51Gmail 52Kakao (Kakao Talk) 53Other 55Copy to Clipboard 59Embed 60Text message 61Android messaging 62Verizon messages 63HTC text message 64Sony Conversations 65Go SMS 66LGE Email 67Line 68Viber 69Kik 70Skype 71Blackberry Messenger 72WeChat 73KAKAO Story 74Dropbox 75Telegram 76Facebook Pages 77GroupMe 78Android Email 79Motorola Messaging 80Nearby Share 81Naver 82iOS System Activity Dialog 83Google Inbox 84Android Messenger 85YouTube Music 86YouTube Gaming 87YouTube Kids 88YouTube TV
See the help docs for more information.
Annotations
- annotation_type
- This dimension identifies the manner in which the annotation displays during the video. The following table lists possible dimension values:
The YouTube Help Center provides more detail about the different types of annotations as well as the process of adding annotations to your videos.Values 0Unknown 1Note 3Spotlight 4Title 8Speech bubble 9Label 10Branding watermark 11Featured video 12Featured playlist 30Call-to-Action - annotation_id
- The ID that YouTube uses to uniquely identify an annotation.
Cards
- card_type
- This dimension identifies the type of card that was displayed to the user. The following table lists possible dimension values:
The YouTube Help Center provides more detail about the different types of cards as well as the process of adding cards to your videos.Values 0Unknown 60Link 61Fundraising 62Video 63Playlist 65Fan Funding 66Merchandise 68Associated website 69Channel - card_id
- The ID that YouTube uses to uniquely identify a card.
End screens
- end_screen_element_type
- This dimension identifies the type of end screen element that was displayed to the user. The following table lists the end screen element types and their values:
Values 501Video - The element promotes another YouTube video. 502Playlist - The element promotes YouTube playlist. 503Website - The element links to your associated website. 504Channel - The element links to another channel. 505Subscribe - The element encourages subscriptions to your channel. 506Associated 507Crowdfunding - The element links to an approved crowdfunding website. 508Merchandise - The element links to an approved merchandise website. 509Recent upload - The element links to your channel's most recently uploaded video. 510Best for viewer - end_screen_element_id
- The ID that YouTube uses to uniquely identify an end screen element.
Subtitles
- subtitle_language
- This dimension identifies the closed caption language used for the longest time during the view. Views for which closed captions were mostly turned off are not counted. See the documentation for channel reports or content owner reports for more information about reports that contain this dimension.
- subtitle_language_autotranslated
- This dimension identifies the auto-translated closed caption language used for the longest time during the view. Views for which closed captions were mostly turned off are not counted. See the documentation for channel reports or content owner reports for more information about reports that contain this dimension.
Ad performance
- ad_type
- The
ad_typedimension is used in ad performance reports and aggregates the requested metrics based on the types of ads that ran during video playbacks. The following table lists possible dimension values. See the YouTube Help Center for more information about YouTube advertising formats.
Value Description Value in Query Reports 1Skippable video ads (Auction) auctionTrueviewInstream2Display ads (Auction) auctionDisplay3Non-skippable video ads (Auction) auctionInstream5Display ads (Reserved) reservedDisplay6Non-skippable video ads (Reserved) reservedInstream13Unknown unknown15Skippable video ads (Reserved) reservedInstreamSelect19Bumper ads (auction) auctionBumperInstream20Bumper ads (reserved) reservedBumperInstreamNote: Query reports might return for some additional ad types that were previously used on YouTube.
Content owner dimensions
The following dimensions are only used in content owner reports.
- claimed_status (only used in content owner reports)
- This dimension indicate that a row of data only contains metrics for claimed content. The only valid value for this dimension is
claimed. The table in the definition of theuploader_typedimension provides more detail about how to use this dimension.
- uploader_type (core dimension) (only used in content owner reports)
- This dimension indicates whether a row of data contains metrics for content uploaded by the specified content owner and/or content uploaded by third parties, such as user-uploaded videos. Valid values are
selfandthirdParty. This is a core dimension and is subject to the Deprecation Policy.
The table below shows the supported combinations for theclaimed_statusanduploader_typedimensions:
claimed_statusvalueuploader_typevalueDescription [Not set] self The row contains YouTube Analytics data for claimed and unclaimed content uploaded by the content owner. claimed self The row contains data for claimed content uploaded by the content owner. claimed thirdParty The row contains data for claimed content uploaded by a third party.