python-youtube
A Python wrapper around for YouTube Data API.
What it is and what it does
python-youtube is a Python wrapper around the YouTube Data API V3 that abstracts the HTTP complexity of interacting with YouTube's REST endpoints. It provides two interfaces: a modern Client class and a legacy Api class for backward compatibility. Both support initialization via API key, access token, or OAuth flow, and expose methods to query and manipulate YouTube resources.
The library depends on requests for HTTP calls, requests-oauthlib for OAuth handling, dataclasses-json for response serialization, and isodate for timestamp parsing. It targets Python 3.9 and later and supports both CPython and PyPy. The package is actively maintained with no known security vulnerabilities.
Use it for:
- Fetch channel metadata and statistics for analytics or monitoring purposes.
- Build a YouTube search or discovery tool that queries videos by keyword or channel.
- Automate YouTube content management tasks like uploading, updating, or deleting videos.
- Implement OAuth-based YouTube login or authorization flows in a web application.
- Extract video comments and engagement data for sentiment analysis or research.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python wrapper for the YouTube Data API V3 that lets you query and manage YouTube resources through OAuth or API key authentication.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and provides a clean interface to the YouTube Data API V3. Install it if you need programmatic access to YouTube data or want to automate YouTube operations.
Install
python-youtube on PyPI
pip
pip install python-youtubeuv
uv add python-youtubepoetry
poetry add python-youtubeInstalling python-youtube
Before you install
Low install friction with four straightforward runtime dependencies. Actively maintained as of 2026-04-17 with recent commits and no known vulnerabilities.
License in practice
Licensed under MIT, a permissive open-source license that allows commercial and private use with minimal restrictions.
Quickstart
pip install python-youtube
from python_youtube import Client
client = Client(api_key="your api key")
channel = client.channels.list(channel_id="UC_x5XG1OV2P6uZZ5FSM9Ttw")
Requires a YouTube Data API key or OAuth credentials from Google Cloud Console.
Verify before relying
- Rate limits and quota behavior under heavy usage patterns.
- Whether all YouTube Data API V3 resource methods are fully covered by the wrapper.
- Specific performance characteristics when handling large result sets.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — dataclasses-json, isodate, requests, requests-oauthlib |
| Maintenance | actively maintained — 119 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 492,004/month — #6,362 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_youtube-0.9.9-py3-none-any.whl
Keywords: youtube-api, youtube-v3-api, youtube-data-api, youtube-sdk
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
youtube-search-pythonSearch YouTube for videos, channels, and…
permissive · top 15,000 on PyPI
python-twitterA Python wrapper that provides programmatic…
permissive · top 15,000 on PyPI
mattermostwrapperA Python wrapper for the Mattermost v4 API that…
permissive · top 15,000 on PyPI
Mastodon.pyPython wrapper for the Mastodon API that lets…
permissive · top 15,000 on PyPI
pytubefixDownloads YouTube videos, playlists, and…
permissive · top 15,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
casttubeInteract with YouTube on Chromecast devices by…
permissive · top 15,000 on PyPI
webflowA Python client library for the Webflow Data…
permissive · top 15,000 on PyPI
requests-oauthAdds OAuth 1.0 authentication support to the…
permissive · top 5,000 on PyPI