get_tracks: Get Spotify catalog information for a single track identified...

Description Usage Arguments Value

View source: R/tracks.R

Description

Get Spotify catalog information for a single track identified by its unique Spotify ID.

Usage

1
2
3
4
5
6
get_tracks(
  ids,
  market = NULL,
  authorization = get_spotify_access_token(),
  include_meta_info = FALSE
)

Arguments

ids

The Spotify ID for the track.

market

Optional.
An ISO 3166-1 alpha-2 country code or the string "from_token". Provide this parameter if you want to apply Track Relinking

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 track data. See https://developer.spotify.com/documentation/web-api/reference/tracks/get-several-tracks/ for more information.


tinyspotifyr documentation built on Feb. 24, 2021, 5:09 p.m.