The views metric only counts video views that occurred in the context of a playlist. This request retrieves total playlist starts, estimated minutes watched, views, and views per playlist start for playlists in the authenticated user's channel. Sort=-views Playlist reports Total playlist views for a channel Metrics=views,likes,annotationClickThroughRate,annotationCloseRate,annotationImpressions Results are sorted by view count in descending order, which means that the most viewed video will be listed first. This request retrieves view counts, annotation click-through rates, annotation close rates, and annotation impressions for the channel's 10 most viewed videos. Sort=-estimatedMinutesWatched Top 10 – Annotation click-through rates for a channel's most viewed videos Metrics=estimatedMinutesWatched,views,likes,subscribersGained Note: This report requires you to specify a value for the sort request parameter and to set the maxResults parameter to an integer value of 10 or less. Results are sorted by estimated minutes watched in descending order. This query retrieves a channel's 10 most watched videos, as measured by estimated minutes watched during the specified date range. metrics=views,comments,likes,dislikes,estimatedMinutesWatchedįilters=country=US Top 10 – Most watched videos for a channel The report returns a single row of data that contains totals for each requested metric during the specified date range. This query retrieves metrics for a specific country for a channel's videos. metrics=views,comments,likes,dislikes,estimatedMinutesWatched,averageViewDuration Country-specific view counts (and more) for a channel This query retrieves aggregated metrics for the channel's content. Channel reports Basic stats Video reports Total view counts, estimated watch time, and more for a channel The second row contains data for the traffic source that generated the next highest number of views on the first day. So, the first row in the result set contains data for the traffic source that generated the most views on the first day in the requested date range. Within the set of results for each day, results are sorted in descending order by view count. In the response, results are sorted chronologically. Each row in the result set identifies the number of views and the estimated watch time that originated from a particular type of traffic source (e.g. For example, the request below retrieves daily traffic source data for a particular channel's videos. The API supports the ability to sort response data using multiple dimensions or metrics. Sorting requests by multiple dimensions/metrics Sorting requests by multiple dimensions/metrics.You also have to be authenticated as the specified channel or content owner so that the APIs Explorer can authorize your API requests using OAuth 2.0. For content owner reports, you need to replace CONTENT_OWNER_ID with your content owner ID. For channel reports, you could change MINE to the authenticated user's channel ID. The APIs Explorer will populate the ids parameter value with either channel=MINE or contentOwner=CONTENT_OWNER_ID, depending on the query that you have clicked. The examples also use default start and end dates ( YYYY-MM-DD) of -30.Īfter linking to the APIs Explorer, you must still specify the channel or content owner for which you are retrieving reports. (The channel reports and content owner reports documents identify the reports that the API supports.)Įach example links to and populates the Google APIs Explorer with the values shown. Each example briefly describes the report being retrieved and then shows the corresponding dimensions, metrics, filters, and sort parameter values. This page shows sample YouTube Analytics API requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |