I'm trying to use the Youtube Analytics API to gather daily view counts for all the videos in my channel. It seems like the video dimension throttles the result at top 10 only. Is there anyway I could get daily view count for all my videos?
Get daily view counts for all video of a given channel on Youtube Analytics
1.2k views Asked by user3131162 At
1
There are 1 answers
Related Questions in YOUTUBE
- What is the maven dependency for Google My Business V4 API in order to read reviews?
- is Web hook for google review?
- verificationTokens.generate method for Google Business Profiles throws 404
- how to Update attributes for a given location in java using new API Google mybusiness information
- Why Google My Business API returns an `attribute` which is not deprecated and then does not accept to set this attribute for the locations?
- How can I solve Google My Business Duplicate location problem?
- Why I can't use the word "fions" to create google my business profile?
- Edit GMB OAuth Scopes
- RATE_LIMIT_EXCEEDED exception on getting Account List(Google My Business API)
- Data Studio Cannot Sum Numbers to Chart
Related Questions in YOUTUBE-ANALYTICS
- What is the maven dependency for Google My Business V4 API in order to read reviews?
- is Web hook for google review?
- verificationTokens.generate method for Google Business Profiles throws 404
- how to Update attributes for a given location in java using new API Google mybusiness information
- Why Google My Business API returns an `attribute` which is not deprecated and then does not accept to set this attribute for the locations?
- How can I solve Google My Business Duplicate location problem?
- Why I can't use the word "fions" to create google my business profile?
- Edit GMB OAuth Scopes
- RATE_LIMIT_EXCEEDED exception on getting Account List(Google My Business API)
- Data Studio Cannot Sum Numbers to Chart
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
At the moment you cannot get metrics for all videos via Analytics API directly. First you need to fetch the ids of all your videos and then request Analytic's data for each. I managed it this way:
{ "kind": "youtube#channelListResponse", "etag": "\"F9iA7pnxqNgrkOutjQAa9F2k8HY/SAGx1pv6myGXge51dmywGW81h8o\"", "pageInfo": { "totalResults": 1, "resultsPerPage": 1 }, "items": [ { "kind": "youtube#channel", "etag": "\"F9iA7pnxqNgrkOutjQAa9F2k8HY/g5zJtodBJms3CAfwF_ar2nVgJjU\"", "id": "[id]", "contentDetails": { "relatedPlaylists": { "likes": "[id]", "favorites": "[id]", "uploads": "[id]", "watchHistory": "[id]", "watchLater": "[id]" }, "googlePlusUserId": "[id]" } } ] }
Get all ids of your uploaded videos with the upload playlist id via Data API: https://www.googleapis.com/youtube/v3/playlistItems?part=id&pageToken=&playlistId=[UPLOADID]&maxResults=50&access_token=[TOKEN]. Note: You have to page through the results with nextPageToken.
With the collected video ids you can make a batch request to the Analytics API https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel==mine&start-date=2014-12-29&end-date=2015-01-05&metrics=views,likes&dimensions=video,day&filters=video==[videoId],[videoId],[videoId],[...]&sort=video&access_token=[TOKEN] Note: You can batch up to 200 Video Ids.