Yt: statistics / view count are not returned using v2 api

I can not get yt: statistics and corresponding view counter using youtube v2 api

Search for URIs: http://gdata.youtube.com/feeds/api/videos/-/park/competition?orderby=viewCount&max-results=50&v=2&format=5&fields=entry(title,content,media:group,yt:statistics , yt: rating, gd: rating)

When I print a feed and look for statistics, I can’t find it. I believe that I was able to get it until the last week.

I am using PYTHON gdata lib to send / receive requests. It looks like for some channels I get statistics. Isn't that for every feed?

Any pointers

UPDATE: similar observations for yt: rating.

Is there a minimal guarantee that yy api provides statistics / ratings?

Without a minimum guarantee, will it become unreliable?

+4
source share
1 answer

Have you tried using the YouTube Analytics API ?

Not sure what the equivalent call in the Python library will be, but, for example, this URL will receive watched videos:

https://www.googleapis.com/youtube/analytics/v1/reports ?metrics=views &dimensions=video &max-results=10 &sort=-views &start-index=1 &start-date={first date of interest} &enddate={last date of interest} &ids={your channel id} 

You should be able to use the same OAuth token that you use for the YouTube v2 data API.

0
source

Source: https://habr.com/ru/post/1480863/


All Articles