Does the Youtube API return list of users that have watched my video?

风格不统一 提交于 2020-01-13 19:54:06

问题


I'd like to create a Youtube app that rewards users after they have watched a certain number of my Youtube-channel's videos - or that rewards "experience points" based on the amount of time spent watching my channel.

Can I query the Youtube API to see if an authenticated user has watched a specific video associated with the app?

Seems like I can query against "likes" and "dislikes" - but curious if anyone has tracked "watch-time" or just "watched" in general.

My hesitation here is that I don't want access to a user's full history - I'd like a very unobtrusive approach to connecting authenticated users to specific video content.

I'm not seeing an API endpoint for querying or notifying if an associated Youtube video has been seen. Any help you can provide would be very helpful!


回答1:


Considering user privacy I don't think you can acces this information. If you search through the API, you'll find that Youtube does come with insights, like viewcount and even demographic information.

It might be a solution to embed your videos in your app and then track which users watch that specific video within the app.




回答2:


Inside your app catch the the onStateChange event to log that a user viewed a video. It will only work for video they view from inside your app.



来源:https://stackoverflow.com/questions/14573090/does-the-youtube-api-return-list-of-users-that-have-watched-my-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!