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
1
vote
0 answers

Youtube analytics API Playlists filter returns Unknown error occurred on the server

When retrieving my playlists statistics using the Youtube Analytics API, quite often the API returns error 500 { "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "Unknown error occurred on the…
1
vote
2 answers

Youtube Analytics API retrieve playlist views

I need to get the view count of a Youtube playlist, so I used this API call https://developers.google.com/youtube/analytics/v1/channel_reports#playlist-reports I don't know what's the value to pass in filters. I tried…
Le Duy Khanh
  • 1,339
  • 3
  • 17
  • 36
1
vote
0 answers

youtube-analytics-api pagination stopping

I am trying to paginate thru data using the start-index parameter, I am incrementing the start-index value in a looping construct, it works fine for 1st and 2nd loop, but fails on 3 loop every time (I know there are more videos). Am I paginating…
1
vote
0 answers

Cannot access my Youtube Analytic stats because I am Forbidden

I am using OAuth2 server-to-server. I am getting this message: HTTP Status: 403 { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } } I…
1
vote
1 answer

Refresh Token for Access Token Google API: R Code

I am attempting to retrieve an access token using my refresh token, client id and client secret for the youtube api using R Code. This is google's example of how to POST a request. POST /o/oauth2/token HTTP/1.1 Host: accounts.google.com…
Emily
  • 9
  • 6
1
vote
0 answers

How to get views by people that are subscribed to your channel?

I was surprised to not find a subscribed dimension listed given how prominently this pivot is featured in the analytics UI. The insightTrafficSourceType dimension will give you people that arrived at your video through various 'subscriber' entry…
Kevin Davis
  • 2,698
  • 1
  • 22
  • 27
1
vote
0 answers

YT Analytics API: Limit of 25 rows in resultset

I manage a YouTube MCC account for a social media agency that promotes YouTube videos. We have developed an app which fetches view data for videos we promote using the YouTube Analytics API. We've just encountered an interesting issue on a recent…
Sam Stone
  • 11
  • 1
1
vote
0 answers

Why does Youtube Analytics Api groups.list method only returns at most 20 groups?

My first post on stackoverflow :) I have been trying to use the YouTube Analytics API to list all analytics groups of a content owner. I tried both via APIs-Explorer web:…
1
vote
1 answer

How do I get the youtube api client handle using access token

Im trying to use the youtube analytics API. I already have the access token of the channel stored in some db. In Php, you can build the client and just add the access token, client_id, client_secret then use the client to call youtube analytics. In…
Ninz
  • 231
  • 3
  • 11
1
vote
1 answer

YouTube Content ID API - Views and earnings per asset

Assuming that I'm quite new to the YouTube Content ID API (and in general to YouTube Content ID), i'm looking for a method for get quickly the views and the earnings of a single asset. Analyzing the YouTube Analytics API, I have not found anything…
Mirko
  • 165
  • 2
  • 12
1
vote
1 answer

Making Public API Calls with a simple API Key - Youtube Analytics API

I'm trying to make public call on the Youtube analytics api using a simple key. This is my PHP code:
Everblack
  • 87
  • 1
  • 8
1
vote
1 answer

Return Channel Earnings from YouTube API

I am trying to retrieve earnings from a channel in my CMS using the YouTube API. When I execute my query the response only contains the metrics datatype and not the actual value. How do I return the earnings from the API? stdClass Object ( …
1
vote
1 answer

differing numbers between YouTube Analytics API and what I see on the screen

So I was following the example of connecting to the YouTube Analytics API that can be found by clicking here. When I run the above code I get the 52 views, however when I go to the page directly I see these numbers. Why is it that I see such a…
0
votes
0 answers

Get detailed watch time data from YouTube endpoints

I'm looking to create a piece of software that sends requests to YouTube's server on behalf of the user and organizes the watch time data nicely into charts So far, I have come up with the following: async function getYouTubeAnalyticsData(result:…
avi12
  • 2,000
  • 5
  • 24
  • 41
0
votes
0 answers

How to get YouTube video Views from YouTube Data API?

I am trying to get list of videos with title, upload, date, views, likes, dislikes, comments but I cannot read properties of undefined (reading 'viewCount') as runtime error. const YouTubeSearch = () => { const [keyword, setKeyword] =…