Crawling the timestamps of all the activities (clicks) on a video of another user with API v3 client library

StackOverflow https://stackoverflow.com/questions/21998033

Question

I want to get the time-stamped click-streams of views of a particular Youtube video of another user, so not of the logged in user. What parameter on Youtube API I need to run?

Was it helpful?

Solution

You can get some statistics. If you hit this endpoint:

GET https://www.googleapis.com/youtube/v3/videos?part=statistics&id={VIDEO_ID}&key={YOUR_API_KEY}

Then you will be returned the total viewcount, like count, dislike count, favorite count, and comment count. However, if you want more granular details (for example you mention time stamps), you'll need to have the video's owner authenticate to your site, and then use the Analytics API.

In other words, you can't do detailed data mining if you don't own the videos.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top