A Python wrapper around for YouTube Data API. It provides an easy way to interact with YouTube Data API V3, covering all resource methods like `insert` and `update`. The library is actively developed, with version 0.9.8 released on August 22, 2025, and maintains a consistent release cadence with several updates in 2024 and 2025.
pip install python-youtubeVerified import paths — ran on the pinned version, not inferred.
Initialize the client with an API key and fetch public channel details. For operations requiring user authorization (like accessing private data or uploading videos), an OAuth 2.0 access token is required.
Migrate your code to use `from pyyoutube import Client` and its object-oriented method structure (e.g., `client.channels.list()`).
Always refer to the official `python-youtube` documentation or the YouTube Data API v3 documentation for the most current and supported parameters and methods.
Ensure you have obtained a valid API key from the Google Cloud Console for public data. For private or user-specific data, implement the OAuth 2.0 flow to acquire and manage access tokens. Always enable the YouTube Data API v3 in your Google Cloud project.
Install the library using pip: `pip install python-youtube`.
Obtain a valid API key from the Google Cloud Console, enable the YouTube Data API v3 for your project, and pass it correctly to `Client(api_key="YOUR_API_KEY")`.
For operations requiring user consent, you must implement the OAuth 2.0 flow to acquire and refresh access tokens. Initialize the client with `Client(access_token='YOUR_ACCESS_TOKEN')` for authorized requests.
Refer to the latest documentation for `pyyoutube.Client`. For fetching channel info, use `client.channels.list(channel_id=...)` or similar structured calls instead.
No dependency data recorded yet.