Learn R Programming

geniusr (version 1.2.1)

get_song: Retrieve metadata for a song

Description

The Genius API lets you return data for a specific song, given a song ID. get_song returns this data in full.

Usage

get_song(song_id, access_token = genius_token())

Value

a genius_song object that contains the extracted content from the request, the original JSON response object and the request path.

Arguments

song_id

ID of the song (song_id within an object returned by search_song)

access_token

Genius' client access token, defaults to genius_token

See Also

See get_song_df to return a tidy data frame.

Other song: get_song_df(), tidy_album_performances(), tidy_song_performances(), tidy_song_producers(), tidy_song_relationships(), tidy_song_writers()

Examples

Run this code
if (FALSE) {
get_song(song_id = 3039923)
}

Run the code above in your browser using DataLab