Learn R Programming

geniusr (version 1.1.0)

search_artist: Retrieve artist identifiers for associated search terms

Description

The Genius API lets you search hosted content (all songs). Use search_artist to return artist_id, artist_name and artist_url for all unique artist matches to a search.

Usage

search_artist(search_term, n_results = 10,
  access_token = genius_token())

Arguments

search_term

A character string to search for artist matches

n_results

Maximum no. of search results to return (this is the number of hosted content search results, unique artist matches will be smaller)

access_token

Genius' client access token, defaults to genius_token

Examples

Run this code
# NOT RUN {
search_artist(search_term = "Lil")
# }

Run the code above in your browser using DataLab