album-methods | R Documentation |
The methods are used to retrieve information about albums:
raw_album_get_info()
- Search for an album by name.
raw_album_search()
- Retrieve information about an album exactly by artist and album name or MBID. If both are provided the Artist and Album name are used by default.
raw_album_search(album, .start_page = 1, .n_pages = NULL) raw_album_get_info( artist = NULL, album = NULL, mbid = NULL, autocorrect = TRUE, username = NULL, lang = NULL )
album |
Album name as a string. |
.start_page |
The page to start pulling from, by default starts from the 1st page |
.n_pages |
The total number of pages to pull. If no value is provided, all pages are retrieved. |
artist |
Artist name as a string. |
mbid |
(Optional) MusicBrainz ID for the album as a string. Can be provided instead of artist and album names |
autocorrect |
(Optional) Whether to correct the artist/album/track name names provided in the response. Defaults to TRUE if not provided. |
username |
(Optional) Username as a string. If provided, the user playcount of the album is included in the response. |
lang |
(Optional) The biography language. |
raw_album_search()
returns a list of lastfm objects
raw_album_get_info()
returns a single lastfm object
Biographies for albums and artists are returned in English by
default. To get the biography in other languages, provide a ISO 639-1 country code
via the lang
argument of supporting functions.
Endpoints that take artist/track/album names try to auto-correct misspelled names
in the search query. This behaviour can be overriden by calling the function
with argument autocorrect
set to FALSE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.