# Music YouTube Music class. ## API * Music * [.getInfo(video_id)](#getinfo) * [.search(query, [filters?])](#search) * [.getHomeFeed()](#gethomefeed) * [.getExplore()](#getexplore) * [.getLibrary()](#getlibrary) * [.getArtist(artist_id)](#getartist) * [.getAlbum(album_id)](#getalbum) * [.getPlaylist(playlist_id)](#getplaylist) * [.getLyrics(video_id)](#getlyrics) * [.getUpNext(video_id)](#getupnext) * [.getRelated(video_id)](#getrelated) * [.getSearchSuggestions(query)](#getsearchsuggestions) ### getInfo(video_id) Retrieves track info. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | video_id | `string` | Video id | ### search(query, [filters?]) Searches on YouTube Music. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | query | `string` | Search query | | filters? | `object` | Search filters |
Methods & Getters

- `#getMore(shelf)` - Equivalent to clicking on the shelf to load more items. - `#getContinuation()` - Retrieves continuation, only works for individual sections or filtered results. - `#selectFilter(name)` - Applies given filter to the search. - `#has_continuation` - Checks if continuation is available. - `#filters` - Returns available filters. - `#songs` - Returns songs shelf. - `#videos` - Returns videos shelf. - `#albums` - Returns albums shelf. - `#artists` - Returns artists shelf. - `#playlists` - Returns songs shelf. - `#page` - Returns original InnerTube response (sanitized).

### getHomeFeed() Retrieves home feed. **Returns:** `Promise.`
Methods & Getters

- `#getContinuation()` - Retrieves continuation, only works for individual sections or filtered results. - `#has_continuation` - Checks if continuation is available. - `#page` - Returns original InnerTube response (sanitized).

### getExplore() Retrieves “Explore” feed. **Returns:** `Promise.`
Methods & Getters

- `#page` - Returns original InnerTube response (sanitized).

### getLibrary() Retrieves library. **Returns:** `Promise.` ### getArtist(artist_id) Retrieves artist's info & content. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | artist_id | `string` | Artist id |
Methods & Getters

- `#page` - Returns original InnerTube response (sanitized).

### getAlbum(album_id) Retrieves given album. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | album_id | `string` | Album id |
Methods & Getters

- `#page` - Returns original InnerTube response (sanitized).

### getPlaylist(playlist_id) Retrieves given playlist. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | playlist_id | `string` | Playlist id |
Methods & Getters

- `#has_continuation` - Checks if continuation is available. - `#page` - Returns original InnerTube response (sanitized).

### getLyrics(video_id) Retrieves song lyrics. **Returns:** `Promise.<{ text: string; footer: object; }>` | Param | Type | Description | | --- | --- | --- | | video_id | `string` | Video id | ### getUpNext(video_id) Retrieves up next content. **Returns:** `Promise.` | Param | Type | Description | | --- | --- | --- | | video_id | `string` | Video id | ### getRelated(video_id) Retrieves related content. **Returns:** `Promise.>` | Param | Type | Description | | --- | --- | --- | | video_id | `string` | Video id | ### getSearchSuggestions(query) Retrieves search suggestions. **Returns:** `Promise.>` | Param | Type | Description | | --- | --- | --- | | query | `string` | Search query |