youtube-analytics-api

How to get top 10 videos from your channel with the views count included in the response

不打扰是莪最后的温柔 提交于 2019-12-12 09:17:49
问题 So I have a ouath web app that connects to youtube. I use the youtube analytics calls to get information like number of subscribers from my channel. But right now I try to make a top 10 videos from my channel with the views count for every video included in the response. I use this documentation: Top videos for subscribed or unsubscribed viewers My call looks like this: $command = 'curl -H "Authorization: Bearer ' . $access_token . '" "https://www.googleapis.com/youtube/analytics/v1/reports

How to grant access to Youtube Reporting API for a google service account?

天涯浪子 提交于 2019-12-12 02:35:28
问题 I am trying to access YouTube Reporting API with a service account. But I am getting a 403 forbidden when trying to do youtubeReporting.jobs().list().execute() . YouTube Reporting API clearly supposed Server-to-server interaction. Do I need to grant access to Youtube Reporting API for a google service account? If so, how? FYI : I am not using google app domain. 回答1: You can do that in the Cloud Platform Console. See https://support.google.com/cloud/answer/6158841?hl=en for details 回答2: You

How to download YouTube report using media.download

帅比萌擦擦* 提交于 2019-12-12 02:24:42
问题 I'm looking for an example which explains how to download reports using the .Net client library for YouTube Reporting API. I have authenticated, created jobs, and retrieved a list of reports including reportUrl values. I'm unable to figure out how to use the media.download method to actually download the report and save it locally. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Threading; /

YouTube Analytics API Quota Extension Application?

ぐ巨炮叔叔 提交于 2019-12-11 04:59:36
问题 In the past I've been able to access an online application for a quota extension to the YouTube Analytics API. Has this link been removed? I can no longer get to the application page. https://console.cloud.google.com/iam-admin/quotas?project=iq-default&authuser=1 回答1: You're right. There seems no way on to increase YouTube Analytics API quota (someone correct me if I'm wrong). Unlike any other Google APIs, YouTube Analytics API doesn't have an option to request for more quota in the Quota tab

Is there a way to get historical youtube subscriber information?

耗尽温柔 提交于 2019-12-11 03:45:24
问题 Currently I am retrieving daily subscriber information with the following request: var videoOptions = { 'part': 'snippet,contentDetails,statistics', 'id': videoIds }; // Send request youtube.videos.list(videoOptions, (err, videoDetails) => {}); My question is there a way to get historical subscriber information either through the Data API or Analytics API? I see there is a way to see subs gained or lost over a period of time but I don't know what the base is to compare against: https://www

No audience retention data but columnHeaders from YouTube Analytics API

时光总嘲笑我的痴心妄想 提交于 2019-12-11 01:43:36
问题 I am unable to get any data from the sample request at https://developers.google.com/youtube/analytics/sample-requests#channel-audience-retention-reports What am I doing wrong - I am following the sample in the API Explorer https://developers.google.com/apis-explorer/#p/youtubeAnalytics/v1/youtubeAnalytics.reports.query?metrics=audienceWatchRatio%252CrelativeRetentionPerformance&dimensions=elapsedVideoTimeRatio&filters=video%253D%253DMY_VIDEO_ID%253BaudienceType%253D%253DORGANIC&start-date

YouTubeAnalytics.Reports.query returns 403 Forbidden in Google Apps Script

耗尽温柔 提交于 2019-12-08 12:18:40
问题 I have used the same script to pull the View metric for specific videos and put it into a spreadsheet for more than a year successfully. Now, all of a sudden the script throws me a forbidden error on the YouTubeAnalytics.Reports.query line. I created a blank Apps Script project with the following code to test the issue: function myFunction() { var report = YouTubeAnalytics.Reports.query('channel==MY_CHANNEL_ID','2015-01-01','2015-12-31','views', {filters: 'video==MY_VIDEO_ID'}); Logger.log

Getting 'Forbidden error' when trying to execute youtube analytic API

末鹿安然 提交于 2019-12-06 17:40:28
问题 I am receiving an error message when trying to execute youtube analytics API. A service error occurred: Error calling GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3DUCaayLD9i5x4MmIoVZxXSv_g&start-date=2016-08-01&end-date=2016-08-07&metrics=views&dimensions=7DayTotals: (403) Forbidden Here is my code: require_once __DIR__.'\google-api-php-client-1-master\src\Google\autoload.php'; require_once __DIR__.'\google-api-php-client-1-master\src\Google\Client.php'; require

How to Retrieve a list of the most-viewed channels by region?

醉酒当歌 提交于 2019-12-06 06:08:37
I did go through Youtube v3 APIs but couldn't figure out how to achieve something which can be done using v2 APIs easily i.e. get all most-viewed channels in a region for e.g. Sweden here https://gdata.youtube.com/feeds/api/channelstandardfeeds/SE/most_viewed?v=2 来源: https://stackoverflow.com/questions/35437243/how-to-retrieve-a-list-of-the-most-viewed-channels-by-region

In Google Apps Script, access to YouTube Reporting API is Forbidden

最后都变了- 提交于 2019-12-05 09:24:25
问题 I have used YouTube Reporting API in Google Apps Script. Despite the no code changes, Forbidden is now thrown January 12th. In reference to Google's document, I wrote the following code. var myChannels = YouTube.Channels.list('id', {mine: true}); var channel = myChannels.items[0]; var today = new Date(); var todayFormatted = Utilities.formatDate(today, 'JST', 'yyyy-MM-dd'); var videoId = "MY_VIDEO_ID"; try { var results = YouTubeAnalytics.Reports.query( 'channel==' + channel.id,