Inner is a Kotlin Multiplatform library that wraps YouTube Music’s internalDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/faraasaaay/inner/llms.txt
Use this file to discover all available pages before exploring further.
youtubei/v1/ InnerTube API. It runs on Android and iOS, exposes a clean coroutine-based surface via the YouTube singleton (Android) or PortableInnertube class (KMP), and handles authentication, PoToken generation, playlist management, and audio stream resolution out of the box.
Quickstart
Get Inner integrated and making your first API call in minutes.
Installation
Add the Gradle dependency to your Android or KMP project.
Core Concepts
Understand the layered architecture, clients, and auth model.
API Reference
Full reference for every method on the YouTube object.
What Inner covers
Search
Search songs, albums, artists, playlists, and get suggestions.
Browse
Home feed, explore, charts, mood & genres, artists, albums.
Playback
Resolve audio streams, manage the queue, and fetch lyrics.
Playlists
Create, edit, and manage user playlists with full CRUD.
Library
Access listening history, liked songs, and saved playlists.
Authentication
Cookie-based login, PoTokens, and SAPISIDHASH signing.
Quick example
MainActivity.kt
Add the dependency
Add the
innertube module to your Gradle project. See Installation for the full setup.Configure authentication
Set
YouTube.cookie with your YouTube Music session cookie for authenticated features, or leave it unset for anonymous browsing.Make your first call
All methods return
Result<T> and are suspend functions — call them from a coroutine scope.