Home > Blockchain >  Can I access my personal Youtube playlists with an API or do I need a WebDriver?
Can I access my personal Youtube playlists with an API or do I need a WebDriver?

Time:05-03

I want to get video information (ex: titles) from my Youtube account's playlists (ex: Liked Videos).

Is there some official Youtube/Google API I can use to access my Youtube account and directly get the information, or do I need to use a WebDriver like Selenium to login and then scrape?

CodePudding user response:

This is the official api documentation

https://developers.google.com/youtube/v3/docs

You should have the necessary information.

CodePudding user response:

You can access your own and private playlists over YouTube Data API v3:

https://developers.google.com/youtube/v3/docs/playlists/list

Playlists: list
Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.
(...)
This example retrieves playlists created in the authorized user's YouTube channel. It uses the mine request parameter to indicate that the API should only return playlists owned by the user authorizing the request.

According to this post on StackOverflow the API also returns private playlists.

For information on how to use YouTube's API system, visit the introduction page as well as the Python Quickstart.

  • Related