raw_track_get_similar: Search for similar tracks

View source: R/methods-track.R

raw_track_get_similarR Documentation

Search for similar tracks

Description

The search is performed by providing a source track by:

Usage

raw_track_get_similar(
  track = NULL,
  artist = NULL,
  mbid = NULL,
  autocorrect = TRUE,
  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.

lang

(Optional) The biography language.

Details

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.

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.

Name Autocorrection

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.


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