View source: R/methods-track.R
raw_track_get_info | R Documentation |
The track can be retrieved by: 1. Artist and track name OR 2. MusicBrainz ID
raw_track_get_info( track = NULL, artist = NULL, mbid = NULL, autocorrect = TRUE, username = NULL, 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. |
username |
(Optional) Username as a string |
lang |
(Optional) The biography language. |
One and only one of the above mu?t be provided. If both are provided this defaults to using the artist and track name.
If the artist and track names provided are misspelled in the search query, this endpoint
returns the correct name by default. This can be overriden by calling the function
with function argument autocorrect
set to FALSE
.
Album play count is added to the result if the username
argument is provided.
The biography language is English by default but can be changed using the lang
argument which accepts an ISO 639-1 country code.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.