Learn R Programming

geniusr (version 1.2.1)

get_artist: Retrieve metadata for an artist

Description

The Genius API lets you return data for a specific artist, given an artist ID. get_artist returns this data in full.

Usage

get_artist(artist_id, access_token = genius_token())

Value

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

Arguments

artist_id

ID of the artist (artist_id within an object returned by search_artist)

access_token

Genius' client access token, defaults to genius_token

See Also

See get_artist_df to return a tidy data frame.

Other artist: get_artist_df(), get_artist_songs_df(), get_artist_songs()

Examples

Run this code
if (FALSE) {
get_artist(artist_id = 16775)
}

Run the code above in your browser using DataLab