get_artist_songs | R Documentation |
The Genius API lets you search for song metadata of an artist,
given an artist ID. get_artist_songs
returns this data
in full.
get_artist_songs( artist_id, sort = c("title", "popularity"), include_features = FALSE, access_token = genius_token() )
artist_id |
ID of the artist ( |
sort |
method to order results; by "title" (default) or by "popularity" |
include_features |
Whether to return results where artist isn't the primary artist (logical, defaults to FALSE) |
access_token |
Genius' client access token, defaults to |
a genius_resource
object that contains the extracted content from the request,
the original JSON response object and the request path.
See get_artist_songs_df
to return a tidy data frame.
Other artist:
get_artist_df()
,
get_artist_songs_df()
,
get_artist()
## Not run: get_artist_songs(artist_id = 1421) get_artist_songs(artist_id = 1421, sort = "popularity") get_artist_songs(artist_id = 1421, include_features = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.