verida / data-connector-server

1 stars 2 forks source link

[New Handler] Youtube View History #145

Closed tahpot closed 14 hours ago

tahpot commented 1 week ago

Track what videos a user has watched.

chime3 commented 4 days ago

Video Watch History

Youtube API doesn't support watch history since 2015 to protect user privacy. The only way to access watch history is to manually download activity data using Google Takeout.

Music Listen History

Technically, music upload counts as a video as well, which may include static images or lyrics. Although tracking listening history through Youtube Data API v3 isn't possible, Playlists API is the most appropriate method to achieve this.

Youtube has two default playlists tied to each user's account:

Also, users can create personal playlists as many as possible to save videos.

playlists.list and playlistItems.list endpoints are available to retrieve playlists and the videos within playlists.(TESTED)

Google Portability API

The Google Portability API allows users to download their data from various Google services, but it does not directly provide an API endpoint to retrieve YouTube watch history programmatically.

Notes: Portability APIs often have restrictions regarding access to sensitive data due to privacy.

tahpot commented 16 hours ago

The Google Portability API allows users to download their data from various Google services, but it does not directly provide an API endpoint to retrieve YouTube watch history programmatically.

@chime3 Just to confirm, the Youtube watch history is included in the Google Portability API?

chime3 commented 16 hours ago

The Google Portability API allows users to download their data from various Google services, but it does not directly provide an API endpoint to retrieve YouTube watch history programmatically.

@chime3 Just to confirm, the Youtube watch history is included in the Google Portability API?

Yeah, it is included, but Google Portability API is designated for manual export rather than programmatical access.

tahpot commented 14 hours ago

Noted. I will close this issue and we will cover Youtube watch history when we get to the #66