Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3718

YouTube Analytics API v2 - discrepancy between day and video dimensions [closed]

$
0
0

I am using YouTube Analytics API v2 to report on my YouTube views. I am running two separate requests to find the following:

  • views by video
  • views by day

However, I am seeing a discrepancy between the two when I aggregate the results.For example:

dimensions:daysort:-viewsmetrics:viewsids:channel==MINEstartDate:2000-01-01endDate:2022-12-31

Gives me ~8000 more aggregated views than:

dimensions:videosort:-viewsmetrics:viewsids:channel==MINEstartDate:2000-01-01endDate:2022-12-31maxResults:200

I have ruled out the following:

  • maxResults field on video request - there are less than 200 videos and I am getting definitely data for each video.
  • Latency - I understand that the API data isn't 'real-time' and can see in my results that there is a 48 hour delay and this does not match YouTube Analytics. However, as I am comparing data like-for-like, I don't think this is my issue.

Any ideas would be appreciated

Desired Behavior

  • View count should match across views by day and views by video - why would the view count change based on the dimension?

Specific problem or error

  • There are around 8,000 more aggregated views when viewing by day than by video

Shortest code necessary to reproduce the problem

https://youtubeanalytics.googleapis.com/v2/reports

By day:

dimensions:daysort:-viewsmetrics:viewsids:channel==MINEstartDate:2000-01-01endDate:2022-12-31

By video:

dimensions:videosort:-viewsmetrics:viewsids:channel==MINEstartDate:2000-01-01endDate:2022-12-31maxResults:200

Viewing all articles
Browse latest Browse all 3718

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>