A fast, async-first Python library for accessing YouTube's internal API (Innertube) - search, videos, playlists, channels, transcripts, and more.
Project description
innertubei
Fast, async-first Python library for YouTube's internal API (Innertube)
Installation
Using uv (recommended)
uv add innertubei
Using pip
pip install innertubei
Quick Start
import asyncio
from innertubei import Search, Video, Playlist, Transcript, Suggestions
async def main():
# Search videos, channels, playlists
search = Search('NoCopyrightSounds', limit=5)
results = await search.next()
# Get video details + formats
video = await Video.get('E07s5ZYygMg')
# Get playlist info + videos
playlist = await Playlist.get('PLRBp0Fe2GpgmsW46rJyudVFlY6IYjFBIK')
# Get video transcript
transcript = await Transcript.get('https://www.youtube.com/watch?v=E07s5ZYygMg')
# Get search suggestions
suggestions = await Suggestions.get('python tutorial')
asyncio.run(main())
For detailed examples, see example.py.
Development
Using uv (recommended)
# Clone and setup
git clone https://github.com/ohmyarthur/innertubei
cd innertubei
uv sync
# Run examples
uv run example.py
# Run tests
uv run uv run python -m pytest
Using traditional tools
pip install -e .
python example.py
License
MIT License. See LICENSE for details.
Credits
- Based on: py-yt-search by AshokShau - the original foundation
- Maintained by: ohmyarthur
- Inspiration: youtube-search-python by Alex Mercer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file innertubei-0.5.2.tar.gz.
File metadata
- Download URL: innertubei-0.5.2.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824b0d58d950bddf07ba8de9d66eef9658fa08e320ab6d1d80eed0152f293584
|
|
| MD5 |
c0c5b46a344311677f1fbaa1753c3323
|
|
| BLAKE2b-256 |
6df7384843e1140c19460d3a1a12abec9709a27630b53196dca920c05430af9c
|
Provenance
The following attestation bundles were made for innertubei-0.5.2.tar.gz:
Publisher:
release.yml on ohmyarthur/innertubei
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
innertubei-0.5.2.tar.gz -
Subject digest:
824b0d58d950bddf07ba8de9d66eef9658fa08e320ab6d1d80eed0152f293584 - Sigstore transparency entry: 752770862
- Sigstore integration time:
-
Permalink:
ohmyarthur/innertubei@55e9778c49a4af5f6c93b8b5e4ef976edf8b1454 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/ohmyarthur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@55e9778c49a4af5f6c93b8b5e4ef976edf8b1454 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file innertubei-0.5.2-py3-none-any.whl.
File metadata
- Download URL: innertubei-0.5.2-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8e882f1ca428cf0a69f3ff82e1a3cac120909f2707760f7a5cd8d2b3f8c2e14
|
|
| MD5 |
c09fedc47d09f3a7c7c61f3d4a302678
|
|
| BLAKE2b-256 |
201447d826b29ca8020d38066e7d4e88cc70be867f7f6d75637a9cbcd6929a12
|
Provenance
The following attestation bundles were made for innertubei-0.5.2-py3-none-any.whl:
Publisher:
release.yml on ohmyarthur/innertubei
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
innertubei-0.5.2-py3-none-any.whl -
Subject digest:
e8e882f1ca428cf0a69f3ff82e1a3cac120909f2707760f7a5cd8d2b3f8c2e14 - Sigstore transparency entry: 752770863
- Sigstore integration time:
-
Permalink:
ohmyarthur/innertubei@55e9778c49a4af5f6c93b8b5e4ef976edf8b1454 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/ohmyarthur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@55e9778c49a4af5f6c93b8b5e4ef976edf8b1454 -
Trigger Event:
workflow_dispatch
-
Statement type: