get_track: Gets a track

Description Usage Arguments Value

View source: R/get_track.R

Description

Connects with the Spotify API and returns output from the href https://api.spotify.com/v1/tracks/{id}/

Usage

1
2
3
4
5
6
7
get_track(
  track_id,
  output = c("tidy", "raw"),
  limit = 20,
  offset = 0,
  token = my_token
)

Arguments

track_id

Required. Get Spotify Catalog information for this track_id.

output

Type of output to return from the request. Default: tidy.

limit

Maximum number of results to return. Should be between 1 and 50. Default: 20.

offset

The index of the first result to return. Default: 0.

token

A valid access token from the Spotify Accounts service: see https://developer.spotify.com/documentation/general/guides/authorization-guide/ for details. Default: my_token.

Value

Default: returns a tidy dataframe with a selection of the response. Alternatively, when output is set to raw, it returns the raw output from the request.


spotidy documentation built on March 16, 2021, 5:06 p.m.