raw_track_get_info: Get track information

View source: R/methods-track.R

raw_track_get_infoR Documentation

Get track information

Description

The track can be retrieved by: 1. Artist and track name OR 2. MusicBrainz ID

Usage

raw_track_get_info(
  track = NULL,
  artist = NULL,
  mbid = NULL,
  autocorrect = TRUE,
  username = NULL,
  lang = NULL
)

Arguments

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.

Details

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.

Value

A lastfm API object.

Language Setting

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.


bkkkk/lastfmr documentation built on Sept. 4, 2022, 7:03 a.m.