v4.0.0
Changes
This version has breaking changes. You need to update your code.
Method names changed:
data()is nowfetch_metadata()get_transcript()is nowfetch_transcript()get_video_data_and_transcript()is nowfetch_all()
New Features
- Added
VideoMetadatamodel class for structured video data - Added new exceptions:
IpBlockedandRequestBlocked - Added new example files to help you get started
- Better video ID extraction from URLs
- Improved error messages
Project Changes
- Switched build system from setuptools to uv
- Moved package to src-layout structure
- Removed requirements.txt (using pyproject.toml now)
- Dependencies now use minimum versions instead of pinned versions
- Added Python 3.14 support
How to Update Your Code
Before:
yt = YouTubeAPI()
metadata = yt.data(video_url)
transcript = yt.get_transcript(video_url)After:
yt = YouTubeAPI()
metadata = yt.fetch_metadata(video_url) # Or video_id
transcript = yt.fetch_transcript(video_url)Install
pip install simple-yt-api==4.0.0