Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Handler] Youtube View History #145

Closed
tahpot opened this issue Oct 28, 2024 · 4 comments
Closed

[New Handler] Youtube View History #145

tahpot opened this issue Oct 28, 2024 · 4 comments
Assignees

Comments

@tahpot
Copy link
Member

tahpot commented Oct 28, 2024

Track what videos a user has watched.

@chime3
Copy link
Contributor

chime3 commented Oct 30, 2024

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:

  • Watch Later: saved videos to watch later
  • Liked Videos: all videos the user has liked (youtube-favorite WE DID)

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
Copy link
Member Author

tahpot commented Nov 4, 2024

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
Copy link
Contributor

chime3 commented Nov 4, 2024

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
Copy link
Member Author

tahpot commented Nov 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants