| get_spotify_track_info | R Documentation |
Access the Spotify API to get metadata for audio tracks.
get_spotify_track_info(track_id, api_key = get_spotify_access_token())
track_id |
The Spotify ID for a track. |
api_key |
A Spotify access token, from
|
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).
Other API access:
get_reccobeats_audio_features(),
get_soundstat_audio_features()
# So High School
get_spotify_track_info(track_id = "7Mts0OfPorF4iwOomvfqn1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.