Questions tagged [youtube-analytics-api]

The YouTube Reporting and YouTube Analytics APIs let you retrieve YouTube Analytics data to automate complex reporting tasks, build custom dashboards, and much more.

The YouTube Reporting and YouTube Analytics APIs let you retrieve YouTube Analytics data to automate complex reporting tasks, build custom dashboards, and much more.

  • The Reporting API supports applications that can retrieve and store bulk reports, then provide tools to filter, sort, and mine the data.
  • The Analytics API supports targeted, real-time queries to generate custom reports in response to user interaction.
254 questions
2
votes
1 answer

Google Analytics API - oAuth2 authenfication failure

I'm trying to retrieve information from Analytics and Youtube Analytics with little success. I'm using the PHP API. I've tried to connect with service account and it is working fine. Unfortunately, I'm forced to use oAuth2 protocol since I have to…
2
votes
1 answer

No audience retention data but columnHeaders from YouTube Analytics API

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…
David Andersson
  • 1,246
  • 2
  • 11
  • 17
2
votes
0 answers

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

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…
2
votes
2 answers

Accessing YouTube API in Meteor project for logged in user

I'm working on a new Meteor project which involves users logging into the site using their Google accounts through OAuth (I'm using the Meteor accounts-google package for this) and when signing in I need them to be able to see some data from the…
2
votes
1 answer

Pull ad Earnings numbers from Youtube API

I'm trying to pull some earnings data from youtubeAnalytics.reports.query. My google account is linked to a YouTube CMS, that manages 100+ channels, and I'm using that google account to authenticate my request. So to make this super simple I'm gonna…
vvMINOvv
  • 1,768
  • 4
  • 22
  • 45
2
votes
0 answers

YouTube Analytics API: Get subscribers gained/lost by traffic source for video

Using the YouTube Analytics API, is it possible to retrieve the number of subscribers gained and lost by traffic source grouped or filtered by video? The YouTube Analytics application has a "Subscribers Report"…
Jorik Hanssen
  • 165
  • 2
  • 8
2
votes
0 answers

Filtering groups in targeted query with Apps Script returns "forbidden"

When trying to run this reports query, Apps Script returns a "Forbidden" error. var analyticsResponse = YouTubeAnalytics.Reports.query( 'channel==' + channel, startDate, yesterdayFormatted, 'views', { filters: 'group==' + groupID …
2
votes
1 answer

Earnings statistics report per asset

Is there any way to get statistics earnings per ASSET report over API ? I'm able to get earnings per video but not per asset.
Wlojtek
  • 21
  • 3
2
votes
1 answer

Youtube.Playlist.list ReferenceError

When I'm using Youtube.Playlists.list in Google App script, I'm having an error that says "ReferenceError: "Youtube" is not defined". I enabled Youtube Analytics API and Youtube Data API but the error still appears. May I know how can I make this…
2
votes
1 answer

Subscriber Only Views on YouTube

I've checked the traffic sources on YouTube analytics. However, I do not see the checkbox for the subscriber only views that I've been reading about. Is there any other way I can see the views coming from my subscribers only from YouTube.
1
vote
0 answers

Quota calculator for YouTube Analytics/Reporting APIs

I found a calculator for YouTube Data API - https://developers.google.com/youtube/v3/determine_quota_cost But for my task I need a calculator for YouTube Analytics/Reporting APIs Does such a calculator even exist? OR does it mean that 1 request to…
Robert
  • 11
  • 1
1
vote
0 answers

Is there a way to get results from City Dimension in English when using the Youtube Analytics API?

I'm trying to automate the collection of Youtube channel statistics information using the Youtube Analytics API. I was able to gather most of the stats I needed, but the stats for City Dimension are hard to process because city names are written in…
1
vote
0 answers

YouTube Reporting API: Create/Download reports using channel oauth token

We have a channel oauth token from a channel owner and we are able to use the YouTube Analytics API to get details, including revenue, on the channel/videos. I would like to use the YouTube Reporting API to create a report that we need daily and not…
Tigran
  • 71
  • 1
  • 4
1
vote
1 answer

Historical Data YouTube Reporting API

I am using the YouTube Reporting API, when the jobs were created it only generated reports for the past 30 days from the date of creation. What is the best way to go about gathering historical data past those 30 days to have a complete dataset?
1
vote
0 answers

Youtube Analytics and Reporting API doesn't generate new reports for job created

Some days ago I used the code below to create a new job on Youtube's Analytics and Reporting API. The createTime for this job is 2022-07-25T13:54:51Z. def create_job(token, reportTypeId, name): print(F"START: RUNNING create_job") data =…
avqpereira
  • 31
  • 5