Latency with Youtube Analytics API - youtube-api

This page (http://apiblog.youtube.com/2012/03/keeping-things-fresh.html) does a great job of explaining the latency of results obtained using the Youtube API version 2.0. Is there an equivalent explanation for the Youtube Analytics API?
I viewed and liked a video today that previously had no action and then retrieved statistics using the Analytics API (with both start-date and end-date equal to today) and my actions were not reflected - all metrics were still zero. Do I need to wait until tomorrow for today's totals to be calculated? If yes, is there any way to get the current day's analytics?

The YouTube Analytics API uses the same backend as the YouTube Analytics website, and the public information about data freshness that applies to the website also applies to the API. There's some relevant info at
http://support.google.com/youtube/bin/static.py?hl=en&guide=1714169&page=guide.cs
Specifically, the bottom of the page reads (as of right now):
YouTube Analytics data is updated daily, which means that the numbers displayed in these reports may differ from the public values displayed on the Watch page, Channel page, Video Manager, or other sources.
I don't think we specifically guarantee what time of day the data updates, but it's safe to assume that the previous day's data is processed sometime after midnight Pacific Time (which is the time zone used for YouTube Analytics).

Related

Is there a way to use the Youtube API v3 to grab past subscriber counts?

From everything I have researched I have not been able to find a way to grab past subscriber count on a certain date. If I can't do it through Youtube API is there any other site that would have this kind of data I could grab for a bunch of different channels?
I'm not sure if this is possible with all of the updates to YouTube showing rounded subscriber counts. I would recommend checking out the YouTube Analytics & Reporting APIs at https://developers.google.com/youtube/analytics. Other than that, I would say not.

Youtube API - Difference between number of videos from channel statistics and number of videos uploaded

I am trying youtube API to get the number of videos using the call
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=[id]&key=[key]
However, there is a mismatch in the number of uploaded videos. There are 178 videos uploaded in the channel and the channel statistics API is showing 177.
Why is the difference of 1 count?
UPDATE
After 3 days, I got the correct count from channel statistics API.
Still, the question is "Is there a chance to get the difference?"
If that is the case, I would prefer to use the number of videos uploaded instead of the channel statistics.
Watch time report shows the following data collected from youtube.com, the video watch page, mobile Youtube apps (some data is only available from youtube.com).
Note: Analytics views data is based in Pacific Standard Time, updated once a day, and has a delay of up to 72 hours. The numbers you
see in Analytics reports might be different from the numbers you see
on the video page, channel page, Video Manager, or other sources.
Then I suggest that you use the number of videos uploaded.

How to get average watch time for a youtube video?

According to Youtube Analytics documentation, you can only get watch time for videos uploaded to your own channel, and you can't get it for playlisted videos (except in the context of a playlist, which is useless to me). The documentation also states that if you want to access watch time information, you need a permission from the owner of the channel.
https://developers.google.com/youtube/reporting/#Report_Contents
Is it possible to get Average Watch Time for any youtube video using Youtube data API or Analytics API, or using any other source and how?
You may check averageViewDuration which is the average length, in seconds, of video playbacks. In a playlist report, the metric indicates the average length, in seconds, of video playbacks that occurred in the context of a playlist.
Example:
Total view counts, estimated watch time, and more for a channel
This query retrieves aggregated metrics for the channel's content. The report returns a single row of data that contains totals for each requested metric during the specified date range.
metrics=views,comments,likes,dislikes,estimatedMinutesWatched,averageViewDuration
Hope this helps!

How do I get reports from before dates earlier than the date I created the job in Reporting API?

I'm testing out the new Youtube Analytics Reporting API. However, it looks like I can only get reports from dates on the date I created the job that generates the reports and later. How can I get bulk data from earlier dates than this? Am I forced to use the Analytics API then?
I think if you want to retrieve data in an older timeline Youtube Analytics API is recommended.
You can find the answer you are looking for in Retrieve YouTube Analytics Data.
These are the possible data you can get from Analytics and Reporting API by date.
Feature
Date Ranges
YouTube Analytics API
Some API reports specify the date that user activity occurred. Some of those reports support dimensions to aggregate user activity metrics by 7-day periods, 30-day periods, or months.
YouTube Reporting API
All API reports specify the day that user activity occurred. Applications using the API can implement features to aggregate data for periodic intervals.

How fresh is data from the YouTube Analytics API?

According to Latency with Youtube Analytics API, data from the YouTube Analytics API should update daily. I'm trying to pull over time data for videos using the https://www.googleapis.com/youtube/analytics/v1/reports endpoint. To do this I'm sending parameters like the ones below:
{
'dimensions': 'day',
'end-date': '2015-06-02',
'filters': 'video==MY_VIDEO_ID',
'ids': 'channel==MINE',
'metrics': 'views,uniques,averageViewDuration,averageViewPercentage,comments,likes,dislikes,shares,subscribersGained,subscribersLost',
'prettyPrint': 'false',
'start-date': u'2013-03-18'
}
I'm setting the start-date to the upload date of the video and the end-date to today, but I'm only getting data up to a couple days ago. For example that request above returns 2015-05-31 as the last date that data exists for. I have tried setting the end-date an additional day in the future in case the range was exclusive. According to Latency with Youtube Analytics API I should be getting data up to 2015-06-01.
Is there an additional delay of an extra day now on the Analytics API? Is something wrong with my query? Is there a canonical page somewhere that has numbers for these delays similar to this Adwords answer?

Resources