get_artist_top_tracks: Get Spotify catalog information about an artist’s top tracks...

View source: R/artists.R

get_artist_top_tracksR Documentation

Get Spotify catalog information about an artist’s top tracks by country.

Description

Get Spotify catalog information about an artist’s top tracks by country.

Usage

get_artist_top_tracks(
  id,
  market = "US",
  authorization = get_spotify_access_token(),
  include_meta_info = FALSE
)

Arguments

id

The Spotify ID for the artist.

market

Required.
An ISO 3166-1 alpha-2 country code or the string "from_token". Defaults to "US".

authorization

Required. A valid access token from the Spotify Accounts service. See the Web API authorization guide for more details. Defaults to spotifyr::get_spotify_access_token()

include_meta_info

Optional. Boolean indicating whether to include full result, with meta information such as "total", and "limit". Defaults to FALSE.

Value

Returns a data frame of results containing artist data. See https://developer.spotify.com/documentation/web-api/reference/artists/get-several-artists/ for more information.

See Also

Other artist functions: get_artist(), get_artist_albums(), get_artists(), get_my_followed_artists(), get_related_artists()


spotifyr documentation built on Oct. 30, 2024, 9:13 a.m.