Youtube API: Channel Statistics viewCount not updating - youtube

I am requesting channel statistics via Youtube API v3 (subscriberCount, videoCount and viewCount). While this works well for the subscriberCount, I get the same value for viewCount for more than one day now (even for channels with more than a million subscribers). What could be the problem?

Related

Getting monthly view counts of any YouTube video's

I'm using the Youtube Data API to access the total viewCount of a video.
However, I would like to see the monthly views of a video based on a specific date and/or time. For example, video A currently has a viewCount of 500,000 at the current date and time but perhaps a month ago it had a viewCount of 400,000. Is it possible to access that previous value?
Is there any Youtube API method or alternative resource that would allow me to access the previous view count of a video/list of videos for any public channel?
Thank you!

How can I get estimatedRevenue per video using youtube-api?

What I want to do:
I want to get the estimated revenue per video.
What I tried:
The "estimatedRevenue" can be obtained for each channel.
I don't know how to get it for each video.
Reference:
YouTube Analytics API
https://developers.google.com/youtube/analytics/data_model
Reports: Query | YouTube Analytics and Reporting APIs
https://developers.google.com/youtube/analytics/reference/reports/query?hl=ja

How to get metrics from YouTube Analytics API for every video which belongs to current user?

I want to get metrics (such as likes, views and subscribers gained) for every video in my youtube channel (or about 10 latest video) , how can I do it correctly?
I'm using such API call from Youtube Analytics API, but it turns out that it returns total views and total likes from all videos, not individually about every video.
`https://youtubeanalytics.googleapis.com/v2/reports?metrics=views,likes,subscribersGained&ids=channel==MINE&startDate=2014-07-03&endDate=2020-06-01&&key=${apiKey}&access_token=${token}`
I read documentation of YouTube Analytics API and I can't find this information there.
If you want the response to be grouped by video your have to specify the dimension parameter to video.
Here is a sample request from the documentation (Basic stats/Top 10 – Most watched videos for a channel):
https://developers.google.com/youtube/analytics/sample-requests#Channel_Reports
Although the note does not specify it, the sort parameter must be the first metric that you declared.
If want to get information on more that 10 videos or to pull information for the latest videos, you can specify the dimension as video and you must specify the video ids in the filter parameter as video==VIDEO1_id,VIDEO2_id....
The videos in a channel can be retrieved through the YouTube Data API from the search endpoint.
You will get a list of videos with their details as a response, among others the videoId and publishedAt values.

Youtube API - Difference between number of videos from channel statistics and number of videos uploaded

I am trying youtube API to get the number of videos using the call
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=[id]&key=[key]
However, there is a mismatch in the number of uploaded videos. There are 178 videos uploaded in the channel and the channel statistics API is showing 177.
Why is the difference of 1 count?
UPDATE
After 3 days, I got the correct count from channel statistics API.
Still, the question is "Is there a chance to get the difference?"
If that is the case, I would prefer to use the number of videos uploaded instead of the channel statistics.
Watch time report shows the following data collected from youtube.com, the video watch page, mobile Youtube apps (some data is only available from youtube.com).
Note: Analytics views data is based in Pacific Standard Time, updated once a day, and has a delay of up to 72 hours. The numbers you
see in Analytics reports might be different from the numbers you see
on the video page, channel page, Video Manager, or other sources.
Then I suggest that you use the number of videos uploaded.

Unable to search for videos of a particular channel using youtube Data API (v3)

I am trying to obtain the list of all videos of a particular channel (Hindi Movies - https://www.youtube.com/channel/SBa1uR1yU6EZA )
The query I tried in the API explorer is :
GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=SBa1uR1yU6EZA&key={YOUR_API_KEY}
Expected Result: It shows only results from the specified channel.
What happens: It shows millions of results from various channels.
However the API explorer is able to fetch videos of another channel(https://www.youtube.com/channel/UCU8LF98Njvux51LYGLgXiaw) just fine. ( channelID has been changed in this query):
GET https://www.googleapis.com/youtube/v3/search?part=snippet&channelId=UCU8LF98Njvux51LYGLgXiaw&key={YOUR_API_KEY}
So is it possible to only fetch videos shown in the channel (Hindi Movies) ? If so how ?
Thanks
Expected Result: It shows only results from the specified channel.
What happens: It shows millions of results from various channels.
Hindi Movies is not a "normal" channel like YRF Movies. This channel is created by Google Play to present you some paid content.
In this channel, there is no videos ! it's just a link to other channel. This is why you get "millions of results from various channels"
No weird things, the API answer is fine.

Resources