Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/faraasaaay/innertube-v2/llms.txt

Use this file to discover all available pages before exploring further.

Page classes are the structured data objects returned by YouTube browse and search methods. Each page class corresponds to a particular endpoint and bundles together the primary content, related metadata, and continuation tokens needed for pagination.

AlbumPage

Returned by YouTube.album(). Contains the full album with all its tracks.
FieldTypeDescription
albumAlbumItemThe album metadata (title, artists, year, thumbnail)
songsList<SongItem>Ordered list of tracks on this album
otherVersionsList<AlbumItem>Other versions of this album (e.g. deluxe, explicit, remaster)
releasesForYouList<AlbumItem>Personalized related album suggestions (may be empty)
descriptionString?Plain-text album description
descriptionRunsList<Run>?Structured rich-text runs for the description (with links)

ArtistPage

Returned by YouTube.artist(). Contains the artist overview with all content sections.
FieldTypeDescription
artistArtistItemThe artist metadata (name, thumbnail, channel ID)
sectionsList<ArtistSection>Content carousels and shelves on the artist page
descriptionString?Plain-text artist biography
subscriberCountTextString?Formatted subscriber count (e.g. "1.2M subscribers")
monthlyListenerCountString?Monthly listener count string, if available
descriptionRunsList<Run>?Structured rich-text runs for the biography

ArtistSection

A single content section within an ArtistPage (e.g. “Songs”, “Albums”, “Singles”).
FieldTypeDescription
titleStringSection heading label
itemsList<YTItem>Items in this section — may be SongItem, AlbumItem, PlaylistItem, or ArtistItem
moreEndpointBrowseEndpoint?Endpoint to load a full listing of all items in this section, or null if all items are already shown

PlaylistPage

Returned by YouTube.playlist(). Contains the playlist metadata and its initial batch of songs.
FieldTypeDescription
playlistPlaylistItemPlaylist metadata (title, author, thumbnail)
songsList<SongItem>First batch of songs in the playlist
songsContinuationString?Continuation token to load additional songs
continuationString?Continuation token for the overall page
relatedList<YTItem>?Related items shown at the bottom of the playlist page

PlaylistContinuationPage

Returned by YouTube.playlistContinuation(). Contains only the next batch of songs.
FieldTypeDescription
songsList<SongItem>Next batch of songs
continuationString?Token for the following page, or null if this is the last page

ArtistItemsPage

Returned by YouTube.artistItems(). Contains a full listing of one artist section (e.g. all albums).
FieldTypeDescription
titleStringSection title (e.g. "Albums")
itemsList<YTItem>All items in the section
continuationString?Continuation token for more items, if any

ArtistItemsContinuationPage

Returned when paginating an artist items listing.
FieldTypeDescription
itemsList<YTItem>Next batch of items
continuationString?Token for the following page, or null if exhausted

NextResult

Returned by YouTube.next(). Contains the “Up Next” queue panel for a playing track.
FieldTypeDescription
titleString?Panel title (e.g. playlist or radio name)
itemsList<SongItem>Tracks in the queue panel
currentIndexInt?Zero-based index of the currently playing track within items
lyricsEndpointBrowseEndpoint?Endpoint for fetching lyrics via YouTube.lyrics()
relatedEndpointBrowseEndpoint?Endpoint for fetching related content via YouTube.relatedSongs()
continuationString?Token to load more queue items
endpointWatchEndpointThe watch endpoint representing the current or continuation position

SearchResult

Returned by YouTube.search() and YouTube.searchContinuation().
FieldTypeDescription
itemsList<YTItem>Mixed list of SongItem, AlbumItem, ArtistItem, and PlaylistItem results
continuationString?Token to load the next page of results

SearchSuggestions

Returned by YouTube.searchSuggestions(). Contains type-ahead suggestions.
FieldTypeDescription
queriesList<String>Autocomplete query strings
recommendedItemsList<YTItem>Recommended content items associated with the search query

SearchSummaryPage

Returned by YouTube.searchSummary(). Contains grouped results across multiple content type categories.
FieldTypeDescription
summariesList<SearchSummary>One entry per category (e.g. “Top result”, “Songs”, “Albums”)

SearchSummary

FieldTypeDescription
titleStringCategory heading (e.g. "Songs", "Artists")
itemsList<YTItem>Items in this category

HomePage

Returned by YouTube.home(). Contains the YouTube Music home feed.
FieldTypeDescription
chipsList<Chip>?Filter chips at the top of the home feed (e.g. “Mixed for you”, “New releases”)
sectionsList<Section>Content carousels on the home page
continuationString?Token to load more sections

HomePage.Chip

FieldTypeDescription
titleStringChip label text
endpointBrowseEndpoint?Endpoint to navigate to this filter’s content
deselectEndPointBrowseEndpoint?Endpoint to deselect this chip and return to unfiltered home

HomePage.Section

FieldTypeDescription
titleStringSection heading
labelString?Strapline label (e.g. artist or curator name)
thumbnailString?Section header thumbnail, if present
endpointBrowseEndpoint?”See more” browse endpoint for the section
itemsList<YTItem>Content items in the carousel
HomePage also has filterExplicit() and filterVideoSongs() methods that mirror the List<YTItem> extensions — they apply the filter to every section’s item list at once.

ExplorePage

Returned by YouTube.explore(). Contains the Explore tab content.
FieldTypeDescription
newReleaseAlbumsList<AlbumItem>Newly released albums
moodAndGenresList<MoodAndGenres.Item>Mood and genre category links

ChartsPage

Returned by YouTube.getChartsPage(). Contains music chart rankings.
FieldTypeDescription
sectionsList<ChartSection>Chart sections (e.g. Trending, Top Songs)
continuationString?Token to load more chart data

ChartsPage.ChartSection

FieldTypeDescription
titleStringChart section title (e.g. "Trending")
itemsList<YTItem>Ranked items — usually SongItem with chartPosition set
chartTypeChartTypeEnum identifying the type of chart

ChartType

ValueDescription
TRENDINGCurrently trending tracks
TOPAll-time or weekly top tracks
GENREGenre-specific chart
NEW_RELEASESRecently released tracks

LibraryPage

Returned by YouTube.library(). Contains the user’s saved library items.
FieldTypeDescription
itemsList<YTItem>Library items (playlists, albums, artists)
continuationString?Token to load more library items

LibraryContinuationPage

Returned when paginating the library.
FieldTypeDescription
itemsList<YTItem>Next batch of library items
continuationString?Token for the following page, or null

HistoryPage

Returned by YouTube.musicHistory(). Contains the user’s listening history grouped by time period.
FieldTypeDescription
sectionsList<HistorySection>?History sections grouped by date (e.g. “Today”, “Yesterday”)

RelatedPage

Returned by YouTube.relatedSongs(). Contains content related to a currently playing track.
FieldTypeDescription
songsList<SongItem>Related tracks
albumsList<AlbumItem>Related albums
artistsList<ArtistItem>Related artists
playlistsList<PlaylistItem>Related playlists

BrowseResult

Returned by YouTube.browse(). A generic container for arbitrary InnerTube browse responses.
FieldTypeDescription
titleString?Page title, if present
itemsList<BrowseResult.Item>Grouped sections of content

BrowseResult.Item

FieldTypeDescription
titleString?Section heading
itemsList<YTItem>Items in this section

Build docs developers (and LLMs) love