YouTube - Get analytics action

The Get analytics action retrieves analytics data for a date range you specify in YouTube.

PREREQUISITES

This action requires OAuth 2.0 authentication and returns data only for the channel associated with the connected account. It also calls the YouTube Analytics API, a separate API from YouTube Data API v3 that the rest of this connector uses. Enable YouTube Analytics API for your project in the Google Cloud Console in addition to YouTube Data API v3. Your OAuth connection also needs a scope that grants YouTube Analytics access: YouTube Analytics reports for standard metrics, or YouTube Analytics monetary reports for revenue and ad performance metrics, such as estimatedRevenue. The general Read-only access scope doesn't grant access to the YouTube Analytics API.

Input

FieldDescription
Start dateSelect or enter the start date for the analytics data.
End dateSelect or enter the end date for the analytics data.
MetricsSelect the metrics to retrieve, such as views, estimatedMinutesWatched, likes, comments, subscribersGained, and estimatedRevenue. Leave blank for default metrics.
DimensionsSelect the dimensions for grouping data, such as day, month, country, ageGroup, gender, deviceType, video, and playlist.
FiltersEnter the filters parameter, for example video==videoID;country==IN.
SortEnter the sort parameter, for example -views for descending views or day for ascending by day.
Max resultsEnter the maximum number of results to return. Valid values are 1-50. Default is 25.

Output

FieldDescription
KindThe API resource type, for example youtubeAnalytics#resultTable.
Column headersAn array describing each column in Rows. Each entry contains a Name, Column type, and Data type.
RowsAn array of result rows. Each row contains one value per column, in the order defined by Column headers.

Last updated: