TheDocumentation 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.
YouTube object exposes four search-related suspend functions covering typed search, pagination, cross-category summaries, and autocomplete suggestions. All functions return Result<T> — use getOrThrow(), getOrNull(), or onSuccess/onFailure to handle outcomes.
search(query, filter)
Performs a filtered search against YouTube Music and returns the first page of results.
The search query string.
Restricts results to a single content type. See SearchFilter values below.
Parsed result items. The concrete type depends on the filter used:
SongItem, VideoItem, AlbumItem, ArtistItem, or PlaylistItem.Opaque token. Pass to
searchContinuation() to retrieve the next page. null when no further pages are available.searchContinuation(continuation)
Fetches the next page of results for a previous search() call.
The continuation token returned by a previous
search() or searchContinuation() call.The next page of result items. Empty list if there are no more results.
Token for the page after this one, or
null when results are exhausted.searchSummary(query)
Returns a multi-category summary of search results, similar to YouTube Music’s default search page. Results are grouped into named sections such as “Top result”, “Songs”, “Albums”, “Artists”, and “Playlists”.
The search query string.
Ordered list of result groups.
searchSuggestions(query)
Returns autocomplete suggestions and recommended items for a partial query string, as shown in the YouTube Music search bar.
A partial or complete query string to get suggestions for.
Autocomplete text suggestions derived from the query.
Pre-resolved content items (songs, artists, etc.) recommended alongside the text suggestions.
SearchFilter values
YouTube.SearchFilter is a @JvmInline value class wrapping the encoded InnerTube filter string. Always reference constants via YouTube.SearchFilter.FILTER_*.
| Constant | Encoded value | Matches |
|---|---|---|
FILTER_SONG | EgWKAQIIAWoKEAkQBRAKEAMQBA%3D%3D | Audio tracks |
FILTER_VIDEO | EgWKAQIQAWoKEAkQChAFEAMQBA%3D%3D | Music videos |
FILTER_ALBUM | EgWKAQIYAWoKEAkQChAFEAMQBA%3D%3D | Albums and EPs |
FILTER_ARTIST | EgWKAQIgAWoKEAkQChAFEAMQBA%3D%3D | Artist channels |
FILTER_FEATURED_PLAYLIST | EgeKAQQoADgBagwQDhAKEAMQBRAJEAQ%3D | Official / featured playlists |
FILTER_COMMUNITY_PLAYLIST | EgeKAQQoAEABagoQAxAEEAoQCRAF | User-created playlists |
SearchFilter is a value class — it carries zero runtime overhead compared to a plain String. Use the named constants rather than constructing a SearchFilter directly to avoid encoding mistakes.