The search API exposes four coroutine functions on theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/faraasaaay/innertube-v1/llms.txt
Use this file to discover all available pages before exploring further.
YouTube singleton. Use search() for filtered, paginated results; searchSuggestions() for autocomplete; searchSummary() for a multi-category overview; and searchContinuation() to page through a previous search() call.
YouTube.search
Returns a page of items matching query narrowed to a single content type by filter.
The search query string entered by the user.
Restricts results to a single content category. Pass one of the
SearchFilter companion constants — for example SearchFilter.FILTER_SONG.A Kotlin
Result wrapping a SearchResult on success, or an exception on failure.YouTube.searchSuggestions
Returns autocomplete suggestions and recommended items for a partial query string.
The partial or complete query string to generate suggestions for.
A
Result wrapping a SearchSuggestions object.YouTube.searchSummary
Performs a full search and groups the top results into titled sections — one section per content category. Useful for building a “search overview” screen that shows a sample from every type.
The search query string.
A
Result wrapping a SearchSummaryPage.YouTube.searchContinuation
Fetches the next page of results from a previous search() call using the continuation token returned in SearchResult.continuation.
The opaque continuation token obtained from a prior
SearchResult.continuation field.A
Result wrapping a SearchResult. The continuation field of the new result will be null when the last page has been reached.SearchFilter
An inline value class that wraps a URL-encoded parameter string consumed by the InnerTube search endpoint. All constants live in the companion object.
| Constant | Content type returned |
|---|---|
FILTER_SONG | Audio tracks (songs and music videos) |
FILTER_VIDEO | YouTube Music video clips |
FILTER_ALBUM | Full albums and EPs |
FILTER_ARTIST | Artist channel pages |
FILTER_FEATURED_PLAYLIST | YouTube-curated playlists |
FILTER_COMMUNITY_PLAYLIST | User-created public playlists |
FILTER_PODCAST | Podcast shows |
FILTER_EPISODE | Individual podcast episodes |
FILTER_PROFILE | User channel profiles |