View source: R/methods-track.R
raw_track_get_similar | R Documentation |
The search is performed by providing a source track by:
raw_track_get_similar( track = NULL, artist = NULL, mbid = NULL, autocorrect = TRUE, lang = NULL )
track |
Required unless mbid is provided. The track name as a string. |
artist |
Required unless mbid is provided. The artist name as a string. |
mbid |
(Optional) MusicBrainz ID for the track as a string. Can be provided instead of artist and track names |
autocorrect |
(Optional) Whether to correct the artist/album/track name names provided in the response. Defaults to TRUE if not provided. |
lang |
(Optional) The biography language. |
1. Artist and track name OR 2. MusicBrainz ID
One and only one of the above must be provided. If both are provided this defaults to using the artist and track name.
A lastfm API 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.