Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

innertubei-0.5.2.tar.gz (85.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

innertubei-0.5.2-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

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

Hashes for innertubei-0.5.2.tar.gz
Algorithm Hash digest
SHA256 824b0d58d950bddf07ba8de9d66eef9658fa08e320ab6d1d80eed0152f293584
MD5 c0c5b46a344311677f1fbaa1753c3323
BLAKE2b-256 6df7384843e1140c19460d3a1a12abec9709a27630b53196dca920c05430af9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for innertubei-0.5.2.tar.gz:

Publisher: release.yml on ohmyarthur/innertubei

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for innertubei-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8e882f1ca428cf0a69f3ff82e1a3cac120909f2707760f7a5cd8d2b3f8c2e14
MD5 c09fedc47d09f3a7c7c61f3d4a302678
BLAKE2b-256 201447d826b29ca8020d38066e7d4e88cc70be867f7f6d75637a9cbcd6929a12

See more details on using hashes here.

Provenance

The following attestation bundles were made for innertubei-0.5.2-py3-none-any.whl:

Publisher: release.yml on ohmyarthur/innertubei

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page