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.3k views Asked by user3131162 At
1
There are 1 answers
Related Questions in YOUTUBE
- youtube api quota limit of 10000api
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- My youtube widget keeps getting overflow pixels on full screen
- Does server-side content security policy exist for youtube video player API, app, mod apks and website?
- I want to embed YouTube videos in my web app while safeguarding the direct video links. How can I do this?
- Get ISRC from a YouTube video using YouTube Data API v3
- YouTube embed mutes by default on load
- How to solve the problem of being prompted for copyright restrictions (not copyright strikes) when I post a video on YouTube?
- QML WebEngineView doesn't play YouTube video if the video hasn't 480p quality
- YouTube Data API v3 check if a Video/Song has explicit lyrics
- Anyone around Good at both Javascript and Youtube api?, I am using lite-youtube js and I am confused in adding an eventlistener for onStateChange
- Youtube api question, make a perfect copy of a playlist
- Is there a way to use Youtube API for realtime history browser verification?
- Find a code to detect YouTube video end and hide related video on Wordpress
- Youtube Caption Download gives Error 404, the caption id is valid
Related Questions in YOUTUBE-ANALYTICS
- How can I know the compatibility between dimensions and metrics in YT analytics API?
- Is there any way to get this segmented retention data via YT API?
- Running a "supported" query on Youtube analytics v2 API returns "unsupported" response
- Which metrics will be used in the code for below requirements
- YT retention when clicking on an ad
- How can I avoid having to manually obtain OAuth 2.0 authorization codes for Youtube Analytics API?
- YouTube embed not tracking views
- YouTube Channel Reports API not giving metrics (views, likes...) for current day (using Targeted Queries)
- Youtube analytics reports response empty rows
- Why is subscribersGained - subscribersLost different than my current sub count?
- Is there a Next Page Token in the YouTube Analytics API
- Does YouTube Data API V3 work with YouTube Music?
- Google Oauth for Backend Java Services
- Use Youtube Analytics API without Oauth2 via Python?
- Youtube Analytics Reports Query does not match the Youtube Channels List for same video list ID given as a filter
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?
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.