get_artist_songs_df {geniusr} | R Documentation |
Retrieve metadata for all of an artist's songs
Description
The Genius API lets you search for song metadata of an artist,
given an artist ID. get_artist_songs_df
returns this data
in a tidy, but reduced, format.
Usage
get_artist_songs_df(
artist_id,
sort = c("title", "popularity"),
include_features = FALSE,
access_token = genius_token()
)
Arguments
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 |
Value
a tibble
See Also
See get_artist_songs
to return data in full as a
list.
Other artist:
get_artist_df()
,
get_artist_songs()
,
get_artist()
Examples
## Not run:
get_artist_songs_df(artist_id = 1421)
## End(Not run)
[Package geniusr version 1.2.1 Index]