Access the Spotify API to get metadata for audio tracks.
Usage
get_spotify_track_info(track_id, api_key = get_spotify_access_token())Arguments
- track_id
The Spotify ID for a track.
- api_key
A Spotify access token, from
get_spotify_access_token().
Value
A tibble with track metadata, including:
album_name: The name of the album the track appears on (if relevant).track_name: The name of the track.artist: The artist of the track.featuring: The artist(s) featured on the track (if relevant).duration_ms: Duration of the track in milliseconds.explicit: Logical. Does the track contain explicit lyrics (TRUE) or not (FALSE).
See also
Other API access:
get_reccobeats_audio_features(),
get_soundstat_audio_features()
